/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2e7de9;
    --secondary-color: #4a9eff;
    --primary-dark: #1a6cd8;
    --primary-light: #d4e6ff;
    --accent-color: #ffa41b;
    --text-color: #333;
    --text-light: #fff;
    --bg-light: #f5f7fa;
    --bg-dark: #2c3e50;
    --font-base: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    --border-radius: 4px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --success-color: #2e7de9;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #3a80d2;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #5ea6f0;
}

/* 头部样式 */
.main-header {
    background-color: var(--text-light);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 10px;
    transition: var(--transition);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* 右侧控制区域 */
.right-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.accessibility-controls {
    display: flex;
    align-items: center;
}

.accessibility-controls button {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.accessibility-controls button:hover {
    background-color: #f0f0f0;
}

/* 登录控制区 */
.login-controls .login-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 服务区域样式 */
.services-section {
    padding: 80px 0;
    background-color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 30px 20px;
    text-align: center;
}

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

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 80px;
    height: 80px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 成功案例区域样式 */
.stories-section {
    padding: 80px 0;
    background-color: #f0f7ff;
}

.stories-slider {
    max-width: 900px;
    margin: 0 auto;
}

.story-card {
    display: flex;
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.story-image {
    flex: 0 0 300px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    flex: 1;
    padding: 30px;
}

.story-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 合作伙伴区域样式 */
.partners-section {
    padding: 60px 0;
    background-color: var(--text-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.partner-logo img {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 页脚样式 */
.main-footer {
    background-color: var(--primary-light);
    color: var(--text-color);
    padding: 60px 0 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

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

.footer-info h3, .footer-links h3, .footer-subscribe h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.footer-info p {
    margin-bottom: 10px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.subscribe-form {
    display: flex;
}

.subscribe-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.subscribe-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .right-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .story-card {
        flex-direction: column;
    }
    
    .story-image {
        flex: 0 0 auto;
        height: 200px;
    }
}

/* 悬浮工具按钮样式 */
.floating-tools {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background-color: #00457a;
}

.floating-btn.customer-service {
    background-color: var(--primary-color);
}

.floating-btn.file-operation {
    background-color: var(--accent-color);
}

.floating-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.floating-btn span {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: #ff4d4f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-btn.has-notification::before {
    content: attr(data-count);
    opacity: 1;
}

/* 客服面板 */
.service-panel {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-panel.active {
    right: 0;
}

.service-panel-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.service-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.service-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f5f7fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-option:hover {
    background-color: #e6f7ff;
}

.service-option-icon {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e6f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.service-option-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.service-option-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.service-contact {
    text-align: center;
    margin-top: 30px;
}

.service-contact p {
    margin-bottom: 15px;
    color: #666;
}

.service-contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-contact-btn:hover {
    background-color: #00457a;
}

/* 文件操作面板 */
.file-panel {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.file-panel.active {
    right: 0;
}

.file-panel-header {
    padding: 20px;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.file-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.file-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.file-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f5f7fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-option:hover {
    background-color: #fff7e6;
}

.file-option-icon {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff7e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 20px;
}

.file-option-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.file-option-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.file-upload {
    margin-top: 30px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.file-upload:hover {
    border-color: var(--accent-color);
    background-color: #fff7e6;
}

.file-upload p {
    margin-bottom: 15px;
    color: #666;
}

.file-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.file-upload-btn:hover {
    background-color: #e5890f;
}

/* 遮罩层 */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.panel-overlay.active {
    display: block;
}

/* 响应式适配 */
@media (max-width: 576px) {
    .floating-tools {
        right: 15px;
        bottom: 80px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .service-panel,
    .file-panel {
        width: 100%;
        right: -100%;
    }
}

/* 注册成功消息样式 */
.register-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: #f8fcf9;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease-in-out;
}

.success-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

.register-success h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.register-success p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    animation: pulse 1s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
} 