/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
    font-size: 1.2em;
    color: #666;
    font-weight: 300;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover:after {
    width: 80%;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

.section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease;
}

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

/* 标题样式 */
h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    margin: 15px auto;
    border-radius: 2px;
}

h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.5em;
}

h4 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 1.2em;
}

/* 概述区域 */
.overview-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.highlight-box h3 {
    margin-bottom: 15px;
    color: white;
}

.highlight-box ul {
    text-align: left;
    padding-left: 20px;
}

.highlight-box li {
    margin: 10px 0;
    font-size: 1.1em;
}

/* 解决方案卡片 */
.solution-card {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.solution-card .card-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.solution-card .card-content {
    padding: 30px;
}

/* 不同方案的颜色主题 */
.altstore { border-left-color: #007bff; }
.test-version { border-left-color: #28a745; }
.multi-signature { border-left-color: #ffc107; }
.virtual-machine { border-left-color: #dc3545; }
.enterprise-wechat { border-left-color: #6f42c1; }

/* 平台标签 */
.platform-badge {
    background: #e9e9e9;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    margin-left: 10px;
}

.platform-badge.ios { background: #007bff; color: white; }
.platform-badge.android { background: #28a745; color: white; }
.platform-badge.macos { background: #6f42c1; color: white; }
.platform-badge.windows { background: #007bff; color: white; }
.platform-badge.all { background: #17a2b8; color: white; }

/* 实现原理和步骤 */
.implementation, .steps, .tools {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
}

.steps ol, .steps ul {
    padding-left: 20px;
}

.steps li {
    margin: 8px 0;
    font-weight: 500;
}

/* 优劣势对比 */
.pros-cons {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.pros, .cons {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
}

.pros {
    border-left: 4px solid #28a745;
}

.cons {
    border-left: 4px solid #dc3545;
}

.pros ul, .cons ul {
    padding-left: 20px;
}

.pros li {
    color: #28a745;
    font-weight: 500;
}

.cons li {
    color: #dc3545;
    font-weight: 500;
}

/* 适用人群 */
.target-users {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
}

/* 代码块 */
.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    overflow-x: auto;
    border-left: 4px solid #4299e1;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 对比表格 */
.comparison-table {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.comparison-table th {
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    font-weight: 500;
}

.comparison-table .platform {
    display: inline-block;
    margin: 2px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.comparison-table .rating {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
}

.rating.high {
    background: #d4edda;
    color: #155724;
}

.rating.medium {
    background: #fff3cd;
    color: #856404;
}

.rating.low {
    background: #f8d7da;
    color: #721c24;
}

.stars {
    font-size: 1.2em;
    font-weight: bold;
}

/* 常见问题 */
.faq-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-item {
    background: #f8f9fa;
    margin: 15px 0;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.faq-item h4 {
    color: #007bff;
    margin-bottom: 10px;
}

.faq-item p {
    color: #555;
    font-weight: 500;
}

/* 使用建议 */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tip-category {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.tip-category:nth-child(1) { border-left-color: #dc3545; }
.tip-category:nth-child(2) { border-left-color: #ffc107; }
.tip-category:nth-child(3) { border-left-color: #28a745; }

.tip-category h4 {
    margin-bottom: 15px;
    color: #333;
}

.tip-category ul {
    padding-left: 20px;
}

.tip-category li {
    margin: 10px 0;
    color: #555;
}

/* 更新日志和免责声明 */
.footer-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.update-log, .disclaimer {
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
}

.update-log {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
}

.disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #0056b3, #0099cc);
    transform: scale(1.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu li {
        margin: 5px 0;
    }
    
    .pros-cons {
        flex-direction: column;
    }
    
    .tips-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        padding: 15px;
    }
    
    .comparison-table table {
        font-size: 0.9em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .solution-card .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .platform-badge {
        margin: 5px 0;
    }
}

/* 动画效果 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.solution-card:nth-child(odd) {
    animation: slideInLeft 0.6s ease;
}

.solution-card:nth-child(even) {
    animation: slideInRight 0.6s ease;
}

/* 图标样式 */
i {
    margin-right: 10px;
    color: #007bff;
}

/* 解决方案链接样式 */
.solution-link {
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.solution-link:hover {
    background: linear-gradient(135deg, #0056b3, #0099cc);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    text-decoration: none;
}

/* 响应式链接样式 */
@media (max-width: 768px) {
    .solution-link {
        display: block;
        margin-top: 10px;
        text-align: center;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 列表样式 */
ul {
    list-style: none;
}

ul li {
    position: relative;
    padding-left: 25px;
}

ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* 强调文本 */
strong {
    color: #007bff;
    font-weight: 600;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007bff, #00d4ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3, #0099cc);
}
