/* 全局变量 */
:root {
    --main-blue: #0052cc;
    --light-blue: #eef4ff;
    --dark-text: #2d3436;
    --gray-text: #636e72;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; color: var(--dark-text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 导航 */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: var(--white); position: fixed; width: 100%; top: 0; z-index: 100; transition: 0.3s; }
.logo { font-size: 24px; font-weight: bold; color: var(--main-blue); text-decoration: none; }
.nav-links a { text-decoration: none; color: var(--dark-text); margin-left: 25px; font-size: 15px; }
.nav-btn { background: var(--main-blue); color: white !important; padding: 8px 20px; border-radius: 5px; }

/* Hero */

/* Hero 模块修改后 */
.hero {
    height: 75vh;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;

    /* 最适化配置 */
    background-size: cover;        /* 铺满不留白 */
    background-position: center;   /* 居中对齐 */
    background-repeat: no-repeat;  /* 不平铺 */
    background-attachment: scroll; /* 在手机端更流畅，如果想炫酷可以改 fixed */
}

.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 20px; opacity: 0.9; margin-bottom: 30px; }

/* 布局工具 */
.section { padding: 80px 0; }
.alt-bg { background-color: var(--light-blue); }
.section-title { text-align: center; margin-bottom: 50px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.flex-row { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }

/* 卡片与按钮 */
.card { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; }
.card i { font-size: 40px; color: var(--main-blue); margin-bottom: 20px; }
.btn { padding: 12px 35px; border-radius: 5px; text-decoration: none; display: inline-block; font-weight: bold; }
.btn-main { background: white; color: var(--main-blue); }
.btn-outline { border: 2px solid var(--main-blue); color: var(--main-blue); }

/* 底部 */
footer { background: #1a1a1a; color: #999; padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-info h3 { color: white; margin-bottom: 20px; }
/* 二维码容器 */
.qr-container {
    width: 120px;
    height: 120px;
    background: #fff; /* 即使图片没加载出来，也有个白底 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* 圆角增加亲和力 */
    padding: 5px; /* 留一点白边，像真实的打印效果 */
    overflow: hidden; /* 确保图片不会超出容器 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* 增加一点阴影，让它“浮”起来 */
}

/* 二维码图片本身 */
.qr-code {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保证二维码不被拉伸变形 */
}

.step-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
}

.step-number {
    font-size: 40px;
    font-weight: bold;
    color: var(--main-blue);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.step-content h3 {
    margin-bottom: 15px;
    color: var(--main-blue);
    position: relative;
    z-index: 1;
}

.step-arrow {
    font-size: 24px;
    color: var(--main-blue);
    opacity: 0.5;
}

.guide-action {
    text-align: center;
    margin-top: 40px;
}

/* 手机端适配：箭头消失，步骤垂直排列 */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}
/* 标签样式 */
.tag { color: var(--main-blue); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }

/* 列表样式 */
.usage-steps { list-style: none; margin: 25px 0; }
.usage-steps li { margin-bottom: 15px; display: flex; align-items: center; font-size: 16px; }
.usage-steps i { color: #2ecc71; margin-right: 12px; font-size: 18px; }

/* 明显的按钮提醒：呼吸灯脉冲效果 */
.btn-main-pulse {
    background: var(--main-blue);
    color: white !important;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 0 0 rgba(0, 82, 204, 0.7);
    animation: pulse 2s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 82, 204, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 82, 204, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 82, 204, 0); }
}

.action-box { margin-top: 30px; }
.hint { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--gray-text); margin-left: 10px; }

/* AI 模拟框样式 */
.ai-mockup {
    background: #2d3436;
    border-radius: 12px;
    color: white;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    font-family: 'Courier New', Courier, monospace;
}

.mockup-header { border-bottom: 1px solid #444; padding-bottom: 10px; margin-bottom: 20px; font-size: 0.8rem; color: #888; }
.input-line { margin-bottom: 20px; }
.input-line label { font-size: 0.7rem; color: #aaa; display: block; margin-bottom: 5px; }
.type-effect { background: #1e272e; padding: 10px; border-radius: 5px; font-size: 0.9rem; border-left: 3px solid var(--main-blue); }
.mock-tags span { background: var(--main-blue); padding: 3px 10px; border-radius: 15px; font-size: 0.8rem; margin-right: 8px; }

.matching-loader { text-align: center; padding: 20px 0; position: relative; overflow: hidden; }
.scan-line { height: 2px; background: var(--main-blue); width: 100%; position: absolute; top: 0; animation: scan 2s linear infinite; }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

.result-card { background: #3d4446; padding: 15px; border-radius: 8px; display: flex; align-items: center; gap: 15px; opacity: 0; animation: fadeIn 1s forwards 2s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.match-score { color: #2ecc71; font-weight: bold; font-size: 0.8rem; }
.res-avatar { width: 40px; height: 40px; background: #555; border-radius: 50%; }
.res-school { font-size: 0.8rem; color: #aaa; }
/* 用户体验卡片容器 */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 82, 204, 0.1);
}

/* 头部用户信息 */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--main-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-meta h4 {
    font-size: 1.1rem;
    color: var(--dark-text);
}

.school-tag {
    font-size: 0.8rem;
    color: var(--main-blue);
    background: var(--light-blue);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 评分与评论 */
.rating {
    color: #f1c40f;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.comment {
    font-size: 0.95rem;
    color: var(--gray-text);
    font-style: italic;
    flex-grow: 1;
    line-height: 1.7;
    position: relative;
}

.comment::before {
    content: '"';
    font-size: 3rem;
    color: var(--light-blue);
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 0;
}

/* 成就勋章（增加真实感） */
.offer-badge {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    font-size: 0.85rem;
    font-weight: bold;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 全奖预览卡片 */
.scholarship-preview {
    margin-bottom: 50px;
}

.s-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.s-card:hover {
    border-color: var(--main-blue);
    box-shadow: 0 10px 25px rgba(0, 82, 204, 0.08);
}

/* 标签颜色 */
.s-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
}
.fully-funded { background: #e3f9eb; color: #2ecc71; }
.csc-funded { background: #fff5f5; color: #e74c3c; }
.tuition-waive { background: #ebf5ff; color: var(--main-blue); }

.s-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.s-header img { width: 35px; height: 35px; border-radius: 4px; object-fit: cover; }
.s-school { font-size: 0.85rem; color: var(--gray-text); font-weight: 500; }

.s-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-text);
    min-height: 2.8rem; /* 保持卡片高度整齐 */
}

.s-details {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.s-details li {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.s-details i { color: var(--main-blue); font-size: 0.8rem; }

.s-deadline {
    font-size: 0.8rem;
    color: #95a5a6;
    border-top: 1px solid #f1f2f6;
    padding-top: 10px;
}

/* 底部文字与按钮居中 */
.scholarship-footer {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.scholarship-footer p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--gray-text);
}
/* 专家团队卡片 */
.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-header {
    height: 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    display: flex;
    justify-content: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--main-blue);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -40px;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.school-logo-mini {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255,255,255,0.8);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--dark-text);
}

.team-info {
    padding: 50px 25px 30px;
    text-align: center;
}

.team-info h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.phd-title {
    display: block;
    font-size: 0.9rem;
    color: var(--main-blue);
    font-weight: bold;
    margin-bottom: 20px;
}

.edu-path {
    text-align: left;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.edu-path p {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 5px;
}

.edu-path i {
    width: 20px;
    color: #95a5a6;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.research-tags span {
    background: #ebf5ff;
    color: var(--main-blue);
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.team-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
}
/* 地区标签容器 */
.region-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

/* 单个地区标签样式 */
.region-tag {
    background: var(--light-blue);
    color: var(--main-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 82, 204, 0.1);
    transition: all 0.3s ease;
}

.region-tag:hover {
    background: var(--main-blue);
    color: white;
    transform: translateY(-2px);
}

.step-note {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-top: 10px;
}

.school-count {
    margin-top: 15px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}