/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    /* 色彩变量 */
    --primary-color: #ff9a8b;
    --secondary-color: #ff6b88;
    --light-color: #fff5f3;
    --dark-color: #333;
    --gray-color: #666;
    --light-gray: #f8f9fa;
    
    /* 效果变量 */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* 间距变量 */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 50px;
    --space-xxl: 80px;
    
    /* 边框圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: var(--space-md);
}

/* 链接样式重置 */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-sm);
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

header h1 {
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    opacity: 0.9;
}

/* 装饰圆形 */
.decorative-circle {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.1;
    background: white;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 15%;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */
nav {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: var(--space-lg);
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding-bottom: var(--space-xs);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Card Grid & Components
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
    color: var(--dark-color);
}

.card p {
    color: var(--gray-color);
    margin-bottom: var(--space-md);
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    background-color: var(--light-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.tag:hover,
.tag:focus {
    transform: scale(1.05);
    background-color: var(--secondary-color);
    color: white;
}

/* ==========================================================================
   Feature Section
   ========================================================================== */
.feature-section {
    background-color: var(--light-color);
}

.feature-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-text h2 {
    font-size: 2.2rem;
    margin-bottom: var(--space-md);
    color: var(--dark-color);
}

.feature-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Quote Section
   ========================================================================== */
.quote-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    text-align: center;
    padding: 100px 0;
}

.quote {
    font-size: 1.8rem;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    font-style: italic;
    color: var(--dark-color);
    line-height: 1.8;
}

.quote-author {
    font-size: 1.1rem;
    color: var(--gray-color);
    font-style: normal;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: var(--space-lg);
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    padding-left: 8px;
    color: white;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -10px;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: var(--space-md);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    transition: all 0.4s ease;
}

.social-icons a:hover {
    transform: rotate(10deg) scale(1.1);
    background-color: var(--primary-color);
}

/* ==========================================================================
   Copyright & Beian
   ========================================================================== */
.copyright {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.beian-info {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
}

.beian-info a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.beian-info a:hover {
    color: white;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    /* 字体调整 */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    header p {
        font-size: 1.1rem;
    }
    
    .quote {
        font-size: 1.5rem;
    }
    
    /* 布局调整 */
    .nav-container {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 15px;
    }
    
    .nav-links li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .feature-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .circle-1,
    .circle-2,
    .circle-3 {
        display: none; /* 小屏幕隐藏装饰元素 */
    }
}

/* 打印样式 */
@media print {
    .card:hover,
    .social-icons a:hover,
    .nav-links a:hover {
        transform: none !important;
    }
    
    footer {
        background-color: white !important;
        color: black !important;
    }
}