/* 全局重置+核心配色（真人教育高端风：紫+金+灰） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Microsoft Yahei", sans-serif;
}

:root {
    --primary: #5B32A3;    /* 主色-优雅紫（高端、专业） */
    --accent: #D4B16A;     /* 强调色-质感金（品质、信任） */
    --dark: #2D2D2D;       /* 深文本色 */
    --light: #6E6E73;      /* 浅文本色 */
    --bg: #F8F9FA;         /* 背景色 */
    --white: #FFFFFF;      /* 纯白 */
    --shadow: 0 4px 20px rgba(91, 50, 163, 0.08); /* 轻阴影 */
    --hover-shadow: 0 8px 30px rgba(91, 50, 163, 0.15); /* 悬浮阴影 */
}

body {
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* 通用容器（窄边距，更聚焦内容） */
.container {
    width: 88%;
    max-width: 1280px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
}

ul {
    list-style: none;
}

/* 头部导航（差异化：渐变背景+固定导航+窄边距） */
.header {
    background: linear-gradient(120deg, var(--primary), #6A40B3);
    color: var(--white);
    padding: 18px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: var(--shadow);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu li a {
    font-size: 16px;
    position: relative;
}

/* 导航hover特效（差异化：金色下划线渐变） */
.nav-menu li a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* 横幅区域（差异化：全屏渐变+分层图片） */
.banner {
    margin-top: 80px;
    height: 60vh;
    background: linear-gradient(135deg, rgba(91, 50, 163, 0.9), rgba(106, 64, 179, 0.85)), url("https://tse-mm.bing.com/th?q=AG真人教育 官方网站") center/cover no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://tse-mm.bing.com/th?q=真人教育光影效果") center/cover no-repeat;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.banner p {
    font-size: 19px;
    max-width: 900px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* 核心内容区（差异化：卡片式+圆角+3D hover） */
.main-content {
    padding: 80px 0;
}

.section-title {
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
}

/* 首页内容布局（差异化：非对称分栏） */
.home-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.text-box p {
    color: var(--light);
    margin-bottom: 20px;
    font-size: 17px;
}

.img-box {
    position: relative;
}

.img-box img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--hover-shadow);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.img-box:hover img {
    transform: translateY(-10px);
}

/* 产品/课程展示（差异化：3D卡片+渐变边框） */
.product-section {
    padding: 60px 0;
    background-color: var(--white);
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card .card-info {
    padding: 25px;
}

.product-card .card-info h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 15px;
}

.product-card .card-info p {
    color: var(--light);
    font-size: 15px;
    line-height: 1.7;
}

/* 案例展示（差异化：大图+文字叠加） */
.case-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 35px;
}

.case-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
}

.case-card:hover {
    transform: scale(1.03);
    box-shadow: var(--hover-shadow);
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.case-card:hover img {
    transform: scale(1.1);
}

.case-card .case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
}

.case-card .case-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--accent);
}

.case-card .case-info p {
    opacity: 0.9;
    line-height: 1.7;
}

/* 新闻资讯（差异化：极简卡片+侧边线） */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    padding: 25px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border-left: 4px solid transparent;
}

.news-item:hover {
    border-left: 4px solid var(--accent);
    box-shadow: var(--hover-shadow);
    transform: translateX(5px);
}

.news-item .news-title {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 10px;
}

.news-item .news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    display: inline-block;
    background-color: var(--bg);
    padding: 4px 12px;
    border-radius: 20px;
}

.news-item .news-desc {
    color: var(--light);
    line-height: 1.7;
}

/* 联系我们（差异化：双栏渐变+表单质感） */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary), #6A40B3);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info .info-item {
    margin-bottom: 30px;
}

.contact-info .info-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent);
}

.contact-info .info-item p {
    opacity: 0.9;
    line-height: 1.8;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 15px 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    color: var(--dark);
    transition: all 0.4s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 177, 106, 0.1);
}

.contact-form button {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #6A40B3);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    background: linear-gradient(135deg, #6A40B3, var(--primary));
}

/* 底部（差异化：深色渐变+极简） */
.footer {
    background: linear-gradient(135deg, var(--dark), #1A1A1A);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
    opacity: 0.8;
}

/* 响应式适配（差异化：移动端更紧凑） */
@media (max-width: 992px) {
    .home-content {
        grid-template-columns: 1fr;
    }
    .contact-wrap {
        grid-template-columns: 1fr;
    }
    .case-list {
        grid-template-columns: 1fr;
    }
    .banner h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        gap: 20px;
    }
    .banner {
        height: 50vh;
    }
    .section-title {
        font-size: 24px;
    }
}