/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary-color: #4285f4; /* 默认主题色 */
}

body {
    background-color: #f5f5f5;
    padding-bottom: 60px; /* 为底部导航栏留出空间 */
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    text-decoration: none;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: #1976d2; /* 悬停时颜色变深 */
}

/* 顶部导航栏样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 16px;
    height: 56px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.user-icon, .language-selector, .theme-selector, .settings-icon {
    display: flex;
    align-items: center;
    margin: 0 8px;
    cursor: pointer;
    position: relative;
}

.user-icon svg, .settings-icon svg {
    width: 24px;
    height: 24px;
}

.language-selector svg, .theme-selector svg {
    width: 16px;
    height: 16px;
    margin-left: 4px;
}

.header-center h1 {
    font-size: 20px;
    font-weight: 500;
}

/* 主要内容区域样式 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 声明页面特定样式 */
.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 16px;
}

.statement-list {
    padding-left: 20px;
    margin-bottom: 32px;
}

.statement-list li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #333;
}

.contact-info {
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.info-label {
    font-weight: 500;
    margin-right: 8px;
    min-width: 80px;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
}

/* 版本列表页面特定样式 */
.version-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    margin-top: 16px;
}

.tab {
    padding: 12px 0;
    margin-right: 40px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: var(--primary-color);
    font-weight: 500;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.search-container {
    display: flex;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.search-options {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container input:checked ~ .checkmark:after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.label-text {
    font-size: 16px;
    color: #333;
}

.version-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.version-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.version-number {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 4px;
}

.version-type {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 16px;
}

.version-type.beta {
    color: #f44336;
}

.version-type.official {
    color: var(--primary-color);
}

.version-info {
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 16px;
}

.bullet {
    margin-right: 8px;
}

.info-label {
    color: #666;
    margin-right: 4px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 8px 24px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.download-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

/* 主页特定样式 */
.main-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 32px 0;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
}

.description p {
    margin-bottom: 16px;
}

.site-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin: 24px 0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.flame-icon svg {
    width: 24px;
    height: 24px;
    color: #00bfa5;
}

.site-list {
    list-style: none;
    margin-bottom: 16px;
}

.site-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
}

.static-tag, .site-tag {
    margin-left: 8px;
    color: #666;
}

.start-button {
    display: flex;
    justify-content: flex-end;
}

.start-button button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.start-button button:hover {
    transform: translateY(-2px);
}

.start-button button svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

/* 底部导航栏样式 */
.footer {
    display: flex;
    justify-content: space-around;
    background-color: white;
    border-top: 1px solid #e0e0e0;
    padding: 8px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    color: #757575;
    cursor: pointer;
    flex: 1;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* 颜色选择器样式 */
.color-picker {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    width: 180px;
    z-index: 101;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.color-picker.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.color-picker h4 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.color-option.selected {
    border-color: #333;
    transform: scale(1.1);
}

/* 水波纹效果 */
button, 
input[type="button"], 
input[type="submit"], 
input[type="reset"],
a.button, 
[role="button"],
.download-btn,
.start-button button,
.nav-item {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    transition: background-color 0.3s ease, color 0.3s ease;
}

button:active, 
input[type="button"]:active, 
input[type="submit"]:active, 
input[type="reset"]:active,
a.button:active, 
[role="button"]:active,
.download-btn:active,
.start-button button:active,
.nav-item:active {
    background-color: rgba(66, 133, 244, 0.1);
}

button::after, 
input[type="button"]::after, 
input[type="submit"]::after, 
input[type="reset"]::after,
a.button::after, 
[role="button"]::after,
.download-btn::after,
.start-button button::after,
.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin-top: -40px;
    margin-left: -40px;
    background-color: rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(0);
}

button:active::after, 
input[type="button"]:active::after, 
input[type="submit"]:active::after, 
input[type="reset"]:active::after,
a.button:active::after, 
[role="button"]:active::after,
.download-btn:active::after,
.start-button button:active::after,
.nav-item:active::after {
    opacity: 1;
    transform: scale(3);
}

/* 确保超链接没有水波纹效果 */
a:not(.button)::after {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .header {
        padding: 8px 12px;
        height: 52px;
    }
    
    .header-center h1 {
        font-size: 18px;
    }
    
    .user-icon svg, .settings-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .statement-list li {
        font-size: 14px;
    }
    
    .info-item {
        font-size: 14px;
    }
    
    .version-number {
        font-size: 20px;
    }
    
    .info-item {
        font-size: 14px;
    }
    
    .download-btn {
        font-size: 14px;
        padding: 6px 16px;
    }
    
    .nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-item span {
        font-size: 12px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .site-list li {
        font-size: 14px;
    }
    
    .color-picker {
        width: 160px;
        padding: 8px;
    }
    
    .color-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .color-option {
        width: 28px;
        height: 28px;
    }
}
