/**
 * AENS Portal - 与主页风格统一
 * 使用 Bootstrap 原生样式 + 品牌色
 */

/* ==================== 变量定义 ==================== */
:root {
    --ae-primary: #f7296e;
    --ae-secondary: #311b58;
    --ae-gradient: linear-gradient(135deg, #f7296e 0%, #311b58 100%);
}

/* ==================== 基础布局 ==================== */
.aens-portal {
    background: #f8f9fa;
    min-height: 100vh;
}

/* ==================== Hero 区域 ==================== */
.hero-section {
    background: var(--ae-gradient);
    padding: 3rem 0;
    margin-bottom: -2rem;
    position: relative;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.hero-title i {
    margin-right: 0.5rem;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ==================== 搜索框 ==================== */
.domain-search {
    max-width: 600px;
    margin: 0 auto;
}

.domain-search .input-group {
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.domain-search input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.domain-search input:focus {
    box-shadow: none;
    outline: none;
}

.domain-search .btn {
    background: var(--ae-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px !important;
    margin: 0.25rem;
    font-weight: 600;
    color: white;
}

.domain-search .btn:hover {
    background: #e01f5f;
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
    background: white;
    border-radius: 0.375rem;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    border-left: 4px solid var(--ae-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
    cursor: pointer;
}

.stat-card.primary { border-left-color: #f7296e; }
.stat-card.green { border-left-color: #28a745; }
.stat-card.orange { border-left-color: #ffc107; }
.stat-card.purple { border-left-color: #311b58; }
.stat-card.blue { border-left-color: #17a2b8; }

.stat-card .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-card.primary .stat-icon { color: #f7296e; }
.stat-card.green .stat-icon { color: #28a745; }
.stat-card.orange .stat-icon { color: #ffc107; }
.stat-card.purple .stat-icon { color: #311b58; }
.stat-card.blue .stat-icon { color: #17a2b8; }

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* ==================== 功能卡片 ==================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: white;
    border-radius: 0.375rem;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card.icon-pink .feature-icon,
.icon-pink { color: #f7296e; }
.feature-card.icon-purple .feature-icon,
.icon-purple { color: #311b58; }
.feature-card.icon-green .feature-icon,
.icon-green { color: #28a745; }
.feature-card.icon-orange .feature-icon,
.icon-orange { color: #ffc107; }
.feature-card.icon-blue .feature-icon,
.icon-blue { color: #17a2b8; }
.feature-card.icon-cyan .feature-icon,
.icon-cyan { color: #17a2b8; }
.feature-card.icon-yellow .feature-icon,
.icon-yellow { color: #ffc107; }
.feature-card.icon-red .feature-icon,
.icon-red { color: #dc3545; }

.feature-card .feature-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #212529;
    font-size: 0.95rem;
}

.feature-card .feature-desc {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ==================== 内容卡片（Bootstrap card 风格） ==================== */
.content-card {
    background: white;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.content-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #212529;
}

.content-card-header h5 i {
    color: var(--ae-primary);
}

.content-card-header .btn-outline-secondary {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.content-card-body {
    padding: 0;
}

/* ==================== 域名列表 ==================== */
.domain-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    transition: background 0.15s;
}

.domain-item:last-child {
    border-bottom: none;
}

.domain-item:hover {
    background: #f8f9fa;
}

.domain-rank {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
    color: #495057;
}

.domain-item:nth-child(1) .domain-rank {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #000;
}

.domain-item:nth-child(2) .domain-rank {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.domain-item:nth-child(3) .domain-rank {
    background: linear-gradient(135deg, #cd7f32, #a05a20);
    color: #fff;
}

.domain-info {
    flex: 1;
    min-width: 0;
}

.domain-name {
    font-weight: 600;
    color: var(--ae-primary);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.domain-name:hover {
    text-decoration: underline;
    color: #e01f5f;
}

.domain-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
}

.domain-price {
    text-align: right;
    flex-shrink: 0;
    margin-left: 1rem;
}

.domain-price .price {
    font-weight: 700;
    color: #28a745;
}

.domain-price .label {
    font-size: 0.7rem;
    color: #6c757d;
}

/* ==================== 徽章 ==================== */
.badge-auction {
    background: #ffc107;
    color: #000;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.badge-active {
    background: #28a745;
    color: white;
}

.badge-expiring {
    background: #dc3545;
    color: white;
}

.badge-premium {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* ==================== 活动时间线 ==================== */
.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.activity-icon.register { background: rgba(40,167,69,0.1); color: #28a745; }
.activity-icon.transfer { background: rgba(0,123,255,0.1); color: #007bff; }
.activity-icon.bid { background: rgba(255,193,7,0.1); color: #ffc107; }
.activity-icon.update { background: rgba(108,117,125,0.1); color: #6c757d; }
.activity-icon.expire { background: rgba(220,53,69,0.1); color: #dc3545; }

.activity-content {
    flex: 1;
}

.activity-content .action {
    font-size: 0.9rem;
    color: #212529;
}

.activity-content .action a {
    color: var(--ae-primary);
    font-weight: 500;
}

.activity-content .time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
}

/* ==================== 趋势标签 ==================== */
.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}

.trending-tag {
    background: #e9ecef;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.15s;
}

.trending-tag:hover {
    background: var(--ae-primary);
    color: white;
}

.trending-tag.hot {
    background: var(--ae-gradient);
    color: white;
}

/* ==================== 快速统计 ==================== */
.content-card .p-3 .h4 {
    color: #212529;
    margin-bottom: 0.25rem;
}

.content-card .p-3 small {
    color: #6c757d;
}

/* ==================== 使用场景 ==================== */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 992px) {
    .usecase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .usecase-grid { grid-template-columns: 1fr; }
}

.usecase-card {
    background: white;
    border-radius: 0.375rem;
    padding: 1.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    border: 1px solid rgba(0,0,0,0.05);
}

.usecase-card h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #212529;
    font-size: 0.9rem;
}

.usecase-card p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* ==================== 容器 padding ==================== */
.aens-portal .container-wrapper {
    padding: 0 1rem;
}

.aens-portal .section-gap {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* ==================== 页面标题 ==================== */
.aens-portal h5.section-title {
    color: #212529;
    font-weight: 600;
    margin-bottom: 1rem;
}

.aens-portal h5.section-title i {
    color: var(--ae-primary);
}
