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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
}

/* 面包屑导航 */
.breadcrumb {
    background: #333;
    padding: 10px 20px;
    margin-bottom: 20px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
}

.breadcrumb li {
    color: #fff;
    font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #fff;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #fd5a2c;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.header h2 {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 公告栏 */
.header-notice {
    background: #fd5a2c;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-notice i {
    margin-right: 10px;
    font-size: 18px;
}

.header-notice marquee {
    font-weight: 500;
}

/* 邀请码区域 */
#content {
    font-size: 20px;
    font-weight: bold;
    padding: 5px 10px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #fd5a2c;
    display: inline-block;
    margin: 0 10px;
}

#copyBT {
    background: #fd5a2c;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
    margin-left: 10px;
}

#copyBT:hover {
    background: #e64a19;
    transform: translateY(-2px);
}

/* 按钮区域 */
.header-btn {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.header-btn li {
    list-style: none;
}

.header-btn .down {
    background: #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-btn .down:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #fd5a2c;
}

.header-btn .down a {
    text-decoration: none;
    color: white;
    display: block;
}

.header-btn .down i {
    font-size: 40px;
    margin-bottom: 10px;
    color: white;
}

.header-btn .down p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header-btn .down span {
    font-size: 12px;
    opacity: 0.8;
}

/* 弹窗样式 */
.layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#globalAd {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#hero-img {
    height: 100px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fd5a2c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

#profile-img {
    text-align: center;
    margin-bottom: 20px;
}

#profile-img img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

#globalAd h3 {
    color: #333;
    margin-bottom: 15px;
}

#globalAd p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    background: #fd5a2c;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e64a19;
    transform: translateY(-2px);
}

/* 主要内容区域 */
.content {
    background: #fff;
    border-radius: 10px;
    margin: 20px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-tips {
    text-align: center;
    margin-bottom: 30px;
}

.content-tips i {
    font-size: 60px;
    margin: 0 20px;
    color: #333;
}

/* 应用界面展示 */
.app-showcase {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.app-showcase h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.showcase-item {
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.showcase-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.showcase-item p {
    color: #666;
    font-size: 14px;
}

/* 安装指南 */
.install-guide {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.install-guide h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.guide-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.guide-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.guide-item h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.guide-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.guide-item p {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

/* SEO内容区域 */
.seo-content {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.seo-content h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #fd5a2c;
    padding-bottom: 10px;
}

.seo-content h3 {
    color: #555;
    font-size: 20px;
    margin: 25px 0 15px 0;
}

.seo-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-content ul {
    list-style: none;
    padding-left: 20px;
}

.seo-content li {
    color: #666;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.seo-content li::before {
    content: '✓';
    color: #fd5a2c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 页脚 */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

.footer-content p {
    margin-bottom: 5px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .header h2 {
        font-size: 16px;
    }
    
    .header-btn {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .content {
        margin: 10px;
        padding: 20px;
    }
    
    .guide-images {
        grid-template-columns: 1fr;
    }
    
    .seo-content h2 {
        font-size: 20px;
    }
    
    .seo-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-btn {
        grid-template-columns: 1fr;
    }
    
    .header-notice {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    #globalAd {
        padding: 20px;
        margin: 10px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header, .content {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .header {
        background: white;
        border: 2px solid #000;
    }
    
    .header-btn .down {
        border: 2px solid #000;
    }
}
