/* ========================================
   澳学建站 - 电竞少女风全站样式
   粉紫 + 浅蓝 + 纯白配色方案
   斜切非对称分区布局
   ======================================== */

/* CSS Reset & 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fc 50%, #f5e6ff 100%);
    color: #2d2d44;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 颜色变量 */
:root {
    --primary-pink: #d879e8;
    --primary-purple: #9b59b6;
    --light-blue: #5dade2;
    --pure-white: #ffffff;
    --soft-pink: #f5e6ff;
    --soft-blue: #e8f4fc;
    --text-dark: #2d2d44;
    --text-light: #6c7a89;
    --gradient-main: linear-gradient(135deg, #d879e8 0%, #9b59b6 50%, #5dade2 100%);
    --gradient-soft: linear-gradient(135deg, #f5e6ff 0%, #e8f4fc 100%);
    --shadow-soft: 0 10px 40px rgba(155, 89, 182, 0.15);
    --shadow-hover: 0 20px 60px rgba(155, 89, 182, 0.25);
}

/* ========================================
   左侧固定悬浮导航
   ======================================== */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--gradient-main);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    box-shadow: 5px 0 30px rgba(155, 89, 182, 0.3);
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav.hidden {
    transform: translateX(-100%);
}

.nav-logo {
    margin-bottom: 50px;
    text-align: center;
}

.nav-logo img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

.nav-logo h1 {
    color: var(--pure-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 15px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--pure-white);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link:hover,
.nav-link.active {
    background: var(--pure-white);
    color: var(--primary-purple);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.nav-link::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--pure-white);
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    background: var(--primary-purple);
    transform: scale(1.3);
}

.nav-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-contact {
    color: var(--pure-white);
    font-size: 0.9rem;
    line-height: 2;
}

.nav-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--pure-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   右侧主内容区 - 斜切布局
   ======================================== */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

/* 斜切区块通用样式 */
.section-slash {
    position: relative;
    padding: 100px 80px;
    background: transparent;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -80px;
}

.section-slash:last-child {
    margin-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.section-slash:nth-child(even) {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    margin-top: -80px;
}

.section-slash:nth-child(even):last-child {
    margin-top: -80px;
}

/* 不同区块的背景色 */
.section-hero {
    background: var(--gradient-soft);
}

.section-services {
    background: linear-gradient(135deg, #fff5fb 0%, #f0e6ff 100%);
}

.section-cases {
    background: linear-gradient(135deg, #e6f4ff 0%, #f5e6ff 100%);
}

.section-about {
    background: linear-gradient(135deg, #fff9fc 0%, #e8f4fc 100%);
}

.section-news {
    background: linear-gradient(135deg, #f0e6ff 0%, #e6f4ff 100%);
}

.section-contact {
    background: var(--gradient-soft);
}

/* ========================================
   Hero 区块
   ======================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 90vh;
    padding-top: 50px;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gradient-main);
    color: var(--pure-white);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(216, 121, 232, 0.4);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--pure-white);
    box-shadow: 0 10px 30px rgba(216, 121, 232, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(216, 121, 232, 0.5);
}

.btn-secondary {
    background: var(--pure-white);
    color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.2);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: var(--pure-white);
    transform: translateY(-5px);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* ========================================
   服务板块
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(216, 121, 232, 0.1);
    color: var(--primary-purple);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   案例展示
   ======================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.case-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    group: case;
}

.case-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.case-image {
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(155, 89, 182, 0.9));
    color: var(--pure-white);
}

.case-category {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.case-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.case-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.case-card:hover .case-link::after {
    transform: translateX(5px);
}

/* ========================================
   关于我们
   ======================================== */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: var(--primary-pink);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 2;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--pure-white);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ========================================
   新闻资讯
   ======================================== */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 12px 30px;
    background: var(--pure-white);
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.news-tab.active,
.news-tab:hover {
    background: var(--gradient-main);
    color: var(--pure-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   联系我们
   ======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 2;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--pure-white);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-form {
    background: var(--pure-white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
    background: var(--gradient-main);
    color: var(--pure-white);
    padding: 80px 80px 40px;
    margin-left: 280px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-brand p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 10px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    opacity: 0.8;
}

/* ========================================
   内页通用样式
   ======================================== */
.page-header {
    background: var(--gradient-soft);
    padding: 150px 80px 100px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.page-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
}

.page-breadcrumb a:hover {
    color: var(--primary-purple);
}

.content-section {
    padding: 100px 80px;
}

/* ========================================
   新闻列表页
   ======================================== */
.news-list-wrapper {
    display: grid;
    gap: 30px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.news-list-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.news-list-item .news-image {
    height: 100%;
}

.news-list-item .news-image img {
    height: 100%;
    object-fit: cover;
}

.news-list-item .news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========================================
   新闻详情页
   ======================================== */
.news-detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 40px;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-detail-meta {
    display: flex;
    gap: 30px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.news-detail-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-dark);
}

.news-detail-content img {
    max-width: 100%;
    border-radius: 15px;
    margin: 30px 0;
}

.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e8e8e8;
}

.related-news h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar-nav {
        transform: translateX(-100%);
    }
    
    .sidebar-nav.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .section-slash {
        padding: 80px 40px;
        clip-path: none !important;
        margin: 0 !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .site-footer {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .services-grid,
    .news-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-title,
    .section-title {
        font-size: 2rem;
    }
    
    .news-list-item {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}
