/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    min-width: 1200px;
}

/* ==================== 容器 ==================== */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 顶部导航 ==================== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) 1;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    flex-shrink: 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(102, 126, 234, 0.2);
}

.logo-icon {
    font-size: 48px;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-list a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: #667eea;
    transform: translateY(-2px);
}

/* ==================== 感谢内容区 ==================== */
.thanks-section {
    padding: 40px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.thanks-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.thanks-content {
    position: relative;
    z-index: 1;
}

.thanks-content h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thanks-content p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.5;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thanks-text {
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.6s backwards;
    letter-spacing: 0.3px;
}

/* ==================== 导航站模块 ==================== */
.sites-section {
    background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.section-subtitle {
    font-size: 17px;
    color: #666;
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
    line-height: 1.8;
    font-weight: 400;
}

/* ==================== 本站信息模块 ==================== */
.site-info-section {
    background: white;
    padding: 60px 0;
}

.site-info-card {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 选项卡导航 */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 选项卡内容 */
.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 网站信息预览区域 */
.site-info-preview {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

/* 图标包装器 */
.site-info-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* 网站图标 */
.site-info-icon {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.site-info-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图标尺寸标签 */
.site-info-size {
    font-size: 13px;
    color: #666;
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* 网站信息内容 */
.site-info-content {
    flex: 1;
    min-width: 0;
}

/* 信息项 */
.site-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.site-info-item:last-child {
    margin-bottom: 0;
}

.site-info-item label {
    font-weight: 600;
    color: #555;
    min-width: 65px;
    flex-shrink: 0;
    font-size: 14px;
}

.site-info-item span {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-all;
}

/* 操作按钮区域 */
.site-info-actions {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* 操作按钮 */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn svg {
    flex-shrink: 0;
}

/* 复制全部按钮 */
.copy-all-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.copy-all-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

/* 提示消息 */
.toast-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==================== 网站卡片网格 ==================== */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    gap: 15px;
    justify-content: center;
    width: 100%;
}

/* ==================== 网站卡片右上角背景图标 ==================== */
.site-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 12px;
    pointer-events: none;
    z-index: 0;
}

.site-bg-icon {
    position: absolute;
    right: -30px;
    top: -20px;
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    border-radius: 50%;
    pointer-events: none;
    transform: rotate(45deg);
}

/* ==================== 网站卡片 ==================== */
.site-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    min-height: 60px;
    width: 280px;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    z-index: 100;
}

/* ==================== 网站图标 ==================== */
.site-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.site-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.site-icon:hover {
    animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.15) rotate(5deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    75% {
        transform: scale(1.15) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.site-icon:hover img {
    transform: scale(1.1);
}

/* ==================== 网站内容 ==================== */
.site-content {
    flex: 1;
    min-width: 0;
    max-width: calc(280px - 48px - 12px - 30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.site-title {
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #00ffff,
        #0000ff,
        #8b00ff,
        #ff0000
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.site-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 箭头按钮 ==================== */
.site-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.site-arrow svg {
    width: 16px;
    height: 16px;
}

.site-card:hover .site-arrow {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.site-arrow:hover {
    transform: translateY(-50%) translateX(0) scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* ==================== 悬浮提示 ==================== */
.site-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    min-width: 200px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.site-card:hover .site-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==================== 底部页尾 ==================== */
.footer {
    background: #2d3436;
    color: #dfe6e9;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.footer-logo .logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.footer-info p {
    color: #b2bec3;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-contact p {
    color: #b2bec3;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #636e72;
    padding-top: 20px;
    text-align: center;
    color: #636e72;
    font-size: 14px;
}
