/* 页面通用样式 - common-styles.css */

/* 基础重置和通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题区域 */
.page-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 10px;
    font-weight: bold;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 按钮样式 */
.btn-green {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #1e3c72;
    color: #1e3c72;
    padding: 15px 30px;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-2px);
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1a365d;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-cn {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
}

.brand-en {
    color: #a0aec0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

/* 侧边菜单 */
.sidebar {
    position: fixed;
    top: 0;
    right: -150px;
    width: 150px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-logo {
    height: 35px;
    width: auto;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.nav-item {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-item:hover,
.nav-item.active {
    background: #f8f9fa;
    color: #2196F3;
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
}

/* 联系我们区域 */
.contact-section {
    background: #1a365d;
    color: #fff;
    padding: 60px 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.contact-info {
    flex: 1;
    text-align: left;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: left;
}

.phone-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    text-align: left;
    word-wrap: break-word;
    word-break: break-all;
}

.address {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-align: left;
    line-height: 1.6;
    word-wrap: break-word;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #fff;
    color: #1a365d;
}

.contact-qr {
    flex: 0 0 auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-qr img {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.contact-qr p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    text-align: right;
}

.copyright {
    background: #1a365d;
    color: #a0aec0;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
    }
    
    .contact-info {
        flex: 1;
        text-align: left;
    }
    
    .contact-qr {
        flex: 0 0 auto;
        text-align: right;
        align-items: flex-end;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
    
    .contact-qr img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .sidebar {
        width: 150px;
        right: -150px;
    }
    
    .contact-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 15px;
    }
    
    .contact-info {
        flex: 1;
        text-align: left;
    }
    
    .contact-qr {
        flex: 0 0 auto;
        text-align: right;
        align-items: flex-end;
    }
    
    .phone-number {
        font-size: 1.3rem;
    }
    
    .contact-qr img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 360px) {
    .contact-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-info {
        flex: 1;
        text-align: left;
    }
    
    .contact-qr {
        flex: 0 0 auto;
        text-align: right;
        align-items: flex-end;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .phone-number {
        font-size: 1.1rem;
    }
    
    .address {
        font-size: 0.9rem;
    }
    
    .contact-qr img {
        width: 70px;
        height: 70px;
    }
    
    .contact-qr p {
        font-size: 0.8rem;
    }
}