/* 全局设置 */
:root {
    --primary-color: #007AFF;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --secondary-bg: #f5f5f7;
    --hover-color: #007CFF;
    --hover-bg: #f5f5f7;
    --border-color: #e0e0e0;
}

/* 暗黑模式 */
.dark-mode {
    --primary-color: #0a84ff;
    --text-color: #e0e0e0;
    --light-text: #bbb;
    --bg-color: #1c1c1e;
    --secondary-bg: #2c2c2e;
    --hover-color: #2997ff;
    --hover-bg: #2c2c2e;
    --border-color: #3a3a3c;
}

.dark-mode .light-text {
    color: #bbb;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0a84ff;
        --text-color: #e0e0e0;
        --light-text: #bbb;
        --bg-color: #1c1c1e;
        --secondary-bg: #2c2c2e;
        --hover-color: #2997ff;
        --hover-bg: #2c2c2e;
        --border-color: #3a3a3c;
    }
    
    .light-text {
        color: #bbb;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-color);
}

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

a:hover {
    color: var(--hover-color);
}

ul {
    list-style-type: none;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* 只给logo图片的链接添加样式 */
.logo a:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    padding: 0.1rem;  /* 调小padding使背景更紧凑 */
}

.logo a:hover {
    opacity: 0.8;
}

.logo-image {
    height: 2rem;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

/* 暗黑模式下的logo文本颜色 */
.dark-mode .logo-text {
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    .logo-text {
        color: #fff;
    }
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    padding: 5px 0;
    position: relative;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

nav a:hover {
    border-bottom-color: var(--primary-color);
}

nav a.active {
    font-weight: bold;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 主要内容 */
main {
    padding: 20px 0;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.app-icon {
    width: 128px;
    height: 128px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 2.7rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--primary-color);
}

.light-text {
    color: #aaa;
    font-weight: 400;
    letter-spacing: normal;
    font-size: 0.5em;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 12px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.download-section {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.download-btn {
    display: inline-block;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    text-decoration: none;
}

.download-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -1px;
    left: 0;
    background-color: #007CFF;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.download-btn:hover::after {
    transform: scaleX(1);
}

.secondary-link {
    display: inline-block;
    position: relative;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: normal;
}

.secondary-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -1px;
    left: 0;
    background-color: #007CFF;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.secondary-link:hover::after {
    transform: scaleX(1);
}

.secondary-link:hover {
    opacity: 1;
}

.arrow-down {
    font-size: 2rem;
    margin: 20px 0;
    color: var(--primary-color);
}

/* 特性部分 */
.features {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-block {
    border-radius: 8px;
    margin-bottom: 0px;
}

.feature-block h2 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.feature-block img {
    max-width: 700px;
    width: 100%;
    height: auto;
    margin: 10px auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-block img:hover {
    transform: translateY(-2px);
}

.feature-block ul {
    margin-top: 5px;
}

.feature-block ul li {
    margin-bottom: 0px;
    position: relative;
}

.indented {
    margin-left: 20px;
}

/* 署名部分 */
.attribution {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--light-text);
}

/* 页脚 */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

footer .logo {
    display: flex;
    align-items: center;
    height: 32px; /* 设置固定高度，与导航项高度一致 */
}

.attribution-text {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 32px; /* 与logo高度一致 */
}

footer nav {
    display: flex;
    align-items: center;
    height: 32px; /* 与logo高度一致 */
}

footer nav ul {
    display: flex;
    gap: 20px;
    height: 100%; /* 继承父元素高度 */
    align-items: center;
}

footer nav a {
    display: flex;
    align-items: center;
    height: 100%; /* 继承父元素高度 */
    padding: 0; /* 移除内边距，使用高度控制 */
}

/* 响应式设计 */
@media (min-width: 768px) {
    .features {
        max-width: 700px;  /* 限制最大宽度，保持居中对齐 */
    }
}

@media (max-width: 767px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .logo-image {
        height: 1.8rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    nav a {
        font-size: 1.1rem;
    }
    
    .feature-block img {
        margin: 10px auto;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

    footer {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    footer .logo {
        margin-bottom: 0;
    }

    footer nav ul {
        justify-content: center;
    }
}

.hero-image {
    max-width: 700px;
    width: 100%;
    height: auto;
    margin: 10px auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .hero-image {
        margin: 30px auto;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }
}

.app-name {
    font-family: -apple-system-rounded, "SF Pro Rounded", ui-rounded, "Hiragino Sans GB", "PingFang SC", sans-serif;
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.language-btn:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.language-btn svg {
    transition: transform 0.2s ease;
}

.language-btn.active svg {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 120px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-option:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

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

/* 暗黑模式下的语言选择器 */
.dark-mode .language-dropdown {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
    .language-dropdown {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
} 