/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
    background: linear-gradient(to bottom, #0a1c3a, #1b3966);
    min-height: 100vh;
    color: #fff;
    padding: 15px;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Logo 相关 */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 10px;
}

.logo {
    max-width: 160px;
    height: auto;
}

/* 导航栏 */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* 章节标题 */
.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

/* 卡片通用样式 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 3px;
}

.card-header {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.card-footer {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* 站点卡片样式 */
.site-card {
    background: linear-gradient(135deg, #2b3a55 0%, #1a2538 100%);
    border-radius: 12px;
    padding: 15px;
    margin: 5px 0;
    flex: 1 0 calc(33.333% - 10px);
    min-width: 280px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.site-card:hover::before {
    left: 100%;
}

.site-card:active {
    transform: scale(0.98);
}

/* 域名样式 */
.domain-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain-url {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    margin-bottom: 12px;
    word-break: break-all;
}

/* 标签样式 */
.tag {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    color: white;
    display: inline-block;
    animation: pulse 2s infinite;
    margin-left: 8px;
}

/* 状态标签 */
.domain-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.domain-status.available {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.domain-status.unavailable {
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

/* 按钮样式 */
.enter-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.enter-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* 应用卡片样式 */
.app-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    flex: 1 0 calc(33.333% - 10px);
    min-width: 260px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.app-icon {
    width: 36px;
    height: 36px;
    margin-right: 15px;
}

.app-name {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.app-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 二维码容器 */
.qrcode-container {
    text-align: center;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

#qrcode {
    display: inline-block;
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.qrcode-text {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.qrcode-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Emoji样式 */
.emoji {
    font-size: 1.2em;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
    transform-origin: center;
}

.site-card:hover .emoji {
    animation: bounce 0.6s ease infinite;
}

.enter-btn .emoji {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.enter-btn:hover .emoji {
    transform: translateX(3px);
}

/* 加载动画 */
.loading-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    padding: 20px;
    text-align: center;
    width: 100%;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* 动画 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .site-card, .app-card {
        padding: 15px;
        min-width: 100%;
    }

    .card-container {
        gap: 10px;
    }

    .domain-name {
        font-size: 16px;
    }
}

/* 下载按钮状态 */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn.loading {
    background: linear-gradient(135deg, rgba(71, 118, 230, 0.5), rgba(142, 84, 233, 0.5));
    cursor: wait;
    opacity: 0.7;
}

.download-btn .loading-text {
    display: none;
}

.download-btn .normal-text {
    display: inline;
}

.download-btn.loading .normal-text {
    display: none;
}

.download-btn.loading .loading-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn.loading .loading-text::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* 禁用状态 */
a.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 下载区域布局 */
.download-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 下载卡片样式 */
.download-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.platform-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.platform-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.platform-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 按钮组样式优化 */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4776e6 0%, #8e54e9 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(71, 118, 230, 0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 118, 230, 0.3);
    background: linear-gradient(135deg, #5282f0 0%, #9a65f3 100%);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}

.download-btn.secondary:hover {
    background: linear-gradient(135deg, #7d8790 0%, #5a636b 100%);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.recommend-tag {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .download-area {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .download-card {
        padding: 15px;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
    }

    .platform-title {
        font-size: 16px;
    }

    .platform-desc {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .download-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* 禁用状态按钮样式 */
.enter-btn.disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.enter-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}