/*
 * File: css/index.css
 * Description: 首页特有样式 + 弹窗优化
 */

/* Banner */
.hero-section {
    text-align: center;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-section p {
    font-size: 20px;
    color: var(--color-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 核心特色 */
.feature-highlight {
    padding: 60px 0;
    text-align: center;
}

.feature-highlight h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.feature-card {
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-secondary);
}

/* 公告弹窗 (保持不变) */
.popup-announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #1a1a1a;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 123, 255, 0.6);
    border: 1px solid var(--color-primary);
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
}

.popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.popup-link-btn {
    display: block;
    text-align: center;
    margin-top: 25px;
    padding: 10px;
    border-radius: 6px;
    background-color: var(--color-primary);
    color: #fff;
}

/* ------------------------------ */
/* 试用账号弹窗样式 (美化版) */
/* ------------------------------ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.modal-header h3 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.modal-header p {
    color: #666;
    font-size: 14px;
}

/* ★ 修改点：去除蓝色竖线，改为卡片风格 */
.trial-item {
    background-color: #f9faff;
    /* 极淡的蓝色背景 */
    border: 1px solid #e1e4e8;
    /* 灰色边框 */
    border-radius: 8px;
    /* 圆角 */
    padding: 18px 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.trial-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cce5ff;
}

.trial-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.trial-link {
    display: block;
    font-size: 14px;
    color: var(--color-primary);
    word-break: break-all;
    margin-bottom: 8px;
    font-weight: 500;
}

.trial-link:hover {
    text-decoration: underline;
}

.trial-credentials {
    background-color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #eee;
    display: inline-block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
}

.trial-credentials span {
    margin-right: 15px;
}

.trial-credentials strong {
    color: #d63384;
    font-family: monospace;
    font-size: 14px;
    background-color: #fff0f6;
    padding: 2px 5px;
    border-radius: 3px;
}

.trial-desc {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}