/* 全局变量定义 */
:root {
    --primary-color: #1a73e8;    /* 主色调：专业蓝色 */
    --secondary-color: #4285f4;  /* 次要色：亮蓝色 */
    --accent-color: #34a853;     /* 强调色：绿色 */
    --text-color: #202124;       /* 主要文本色 */
    --text-secondary: #5f6368;   /* 次要文本色 */
    --background-light: #f8f9fa; /* 浅色背景 */
    --background-white: #ffffff; /* 白色背景 */
    --border-color: #dadce0;    /* 边框颜色 */
    --shadow-color: rgba(0,0,0,0.1); /* 阴影颜色 */
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础布局 */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
}

.button.primary {
    background: var(--accent-color);
    color: white;
    border: none;
}

.button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 1rem;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* 主要内容区域 */
.section {
    padding: 4rem 2rem;
    background: var(--background-white);
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    max-width: 1200px;
}

/* 特性卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* 考试详情样式 */
.exam-details {
    margin-top: 2rem;
}

.exam-details h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
}

.exam-details ul {
    list-style: none;
    margin-left: 1rem;
}

.exam-details ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.exam-details ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 结果查询流程 */
.checking-process {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.checking-process ul {
    list-style: none;
}

.checking-process ul li {
    margin-bottom: 1.5rem;
}

.checking-process ul ul {
    margin: 0.5rem 0 0 1.5rem;
}

/* 时间线样式 */
.timeline-details {
    position: relative;
    padding: 2rem;
}

.timeline-details h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .button {
        display: block;
        margin: 1rem auto;
        width: 100%;
        max-width: 300px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* Results Checker Section */
.results-checker {
    width: 100%;
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.checker-wrapper {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.portal-frame {
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 2rem;
}

.results-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    min-height: 600px;
}

@media (min-width: 1200px) {
    .portal-frame {
        padding-bottom: 65%; /* 更大屏幕上的高度调整 */
    }
}
