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

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 面包屑导航 */
.breadcrumbs {
    background-color: #e9ecef;
    padding: 10px 0;
    font-size: 0.9rem;
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    content: " > ";
    margin: 0 5px;
    color: #6c757d;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    color: #6c757d;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
}

/* 响应式导航 */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    nav {
        display: none;
    }
    
    .lang-switch {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        margin: 0;
        width: auto;
        display: flex;
        gap: 0.5rem;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 0.5rem;
        border-radius: 50px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .lang-switch a {
        flex: none;
        text-align: center;
        padding: 0.5rem;
        background-color: transparent;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .lang-switch a::before {
        font-size: 1rem;
        font-weight: bold;
    }
    
    /* First link is always English, second is always Chinese */
    .lang-switch a:first-child::before {
        content: "EN";
    }
    
    .lang-switch a:last-child::before {
        content: "中";
    }
    
    .lang-switch a.active {
        background-color: #667eea;
        color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #667eea;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cta-button.primary {
    background-color: #667eea;
    color: white;
}

.cta-button.primary:hover {
    background-color: #5568d3;
}

.cta-button.secondary {
    background-color: white;
    color: #667eea;
}

.cta-button.secondary:hover {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* 通用区块样式 */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: #555;
}

/* 卡片样式 */
.value-cards, .user-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* 移动端调整卡片间距 */
@media (max-width: 768px) {
    .value-cards, .user-cards {
        gap: 2rem;
    }
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card p {
    font-size: 1rem;
    color: #666;
}

/* 特性列表样式 */
.features-list {
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-item .icon {
    font-size: 2rem;
    color: #667eea;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.feature-item .content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.feature-item .content p {
    text-align: left;
    margin: 0;
    font-size: 1rem;
}

/* 规划时间线 */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
    text-align: left;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.timeline-period {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.submit-button {
    width: 100%;
    background-color: #667eea;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #5a6fd8;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    text-align: left;
    margin: 0;
    color: #ddd;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .features-list {
        padding: 0 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-item .icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .feature-item .content p {
        text-align: center;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 5rem;
        padding-right: 0;
        text-align: left;
    }
}

/* 打印样式 */
@media print {
    header, footer {
        display: none;
    }
    
    nav {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* 可访问性样式 */
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    header {
        background-color: #1e1e1e;
    }
    
    .logo h1 {
        color: #e0e0e0;
    }
    
    .logo p {
        color: #aaa;
    }
    
    nav ul li a {
        color: #e0e0e0;
    }
    
    .card {
        background-color: #1e1e1e;
    }
    
    .card h3 {
        color: #e0e0e0;
    }
    
    .card p {
        color: #aaa;
    }
    
    section h2 {
        color: #e0e0e0;
    }
    
    section p {
        color: #ccc;
    }
    
    .feature-item {
        background-color: #1e1e1e;
    }
    
    .feature-item .content h3 {
        color: #e0e0e0;
    }
    
    .feature-item .content p {
        color: #aaa;
    }
    
    .timeline-content {
        background-color: #1e1e1e;
    }
    
    .timeline-content h3 {
        color: #e0e0e0;
    }
    
    .contact-form {
        background-color: #1e1e1e;
    }
    
    .form-group label {
        color: #e0e0e0;
    }
    
    .form-group input,
    .form-group textarea {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .footer-section p {
        color: #aaa;
    }
}