/* style.css - 主样式文件 */
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

a:hover {
    color: #004d99;
    text-decoration: underline;
}

ul, ol {
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器布局 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.site-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    flex: 1;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-description {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 导航栏 */
.main-nav {
    flex: 2;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    color: white;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
}

.nav-list a:hover,
.nav-list a.active {
    color: #bbdefb;
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #bbdefb;
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 21px;
    justify-content: space-between;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 搜索区域 */
.search-section {
    background-color: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #eaeaea;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #1a73e8;
}

.search-btn {
    position: relative;
    left: -60px;
    background: #1a73e8;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0d47a1;
}

.hot-keywords {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.hot-keywords a {
    margin: 0 8px;
    color: #555;
    text-decoration: none;
}

.hot-keywords a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

/* 主要内容区域 */
.main-content {
    padding: 30px 0;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eaf6;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #1a73e8;
}

/* APP网格 */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.app-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    padding: 20px;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.app-icon {
    flex-shrink: 0;
    margin-right: 20px;
}

.app-icon img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

.app-info {
    flex: 1;
}

.app-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.app-title a {
    color: #1a237e;
    text-decoration: none;
}

.app-title a:hover {
    color: #1a73e8;
}

.app-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.app-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-actions {
    display: flex;
    gap: 10px;
}

.btn-detail, .btn-download {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-detail {
    background: #e8eaf6;
    color: #1a237e;
    border: 1px solid #c5cae9;
}

.btn-detail:hover {
    background: #c5cae9;
    color: #0d47a1;
    text-decoration: none;
}

.btn-download {
    background: #1a73e8;
    color: white;
    border: 1px solid #1a73e8;
}

.btn-download:hover {
    background: #0d47a1;
    color: white;
    text-decoration: none;
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a237e;
}

.category-card h3 a {
    color: inherit;
    text-decoration: none;
}

.category-card h3 a:hover {
    color: #1a73e8;
}

.category-apps li {
    margin-bottom: 8px;
    padding-left: 10px;
}

.category-apps a {
    color: #555;
    font-size: 14px;
    text-decoration: none;
}

.category-apps a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

/* 更新列表 */
.update-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.update-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
}

.update-item:last-child {
    border-bottom: none;
}

.update-date {
    min-width: 100px;
    background: #e8eaf6;
    color: #1a237e;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-right: 20px;
}

.update-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    flex: 1;
}

.update-title a {
    color: #333;
    text-decoration: none;
}

.update-title a:hover {
    color: #1a73e8;
}

.update-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f5f5f5;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 10px;
    color: #999;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #1a73e8;
    font-weight: 500;
}

/* 内页APP头部 */
.app-header {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.app-icon-large {
    flex-shrink: 0;
    margin-right: 30px;
}

.app-icon-large img {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
}

.app-basic-info {
    flex: 1;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 10px;
}

.app-version {
    color: #666;
    font-weight: 400;
    font-size: 20px;
}

.app-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item::before {
    content: "•";
    margin-right: 5px;
    color: #1a73e8;
}

.app-rating {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.stars {
    color: #ffb300;
    font-size: 20px;
    margin-right: 10px;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.app-actions-large {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary, .btn-icon {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #1a73e8;
    color: white;
    border: 2px solid #1a73e8;
}

.btn-primary:hover {
    background: #0d47a1;
    border-color: #0d47a1;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: white;
    color: #1a73e8;
    border: 2px solid #1a73e8;
}

.btn-secondary:hover {
    background: #e8eaf6;
    color: #0d47a1;
    text-decoration: none;
}

.btn-icon {
    background: #f5f5f5;
    color: #555;
    border: 2px solid #ddd;
    padding: 12px 15px;
}

.btn-icon:hover {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
}

/* 内容区域 */
.app-description-section, 
.download-section,
.faq-section,
.related-apps {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.description-content h3,
.download-info h3,
.security-notice h3 {
    font-size: 20px;
    color: #1a237e;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8eaf6;
}

.description-content h3:first-child {
    margin-top: 0;
}

.feature-list,
.update-content ul,
.tutorial-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.feature-list li,
.update-content li,
.tutorial-content li {
    margin-bottom: 8px;
    color: #555;
}

.download-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.download-links {
    list-style: none;
}

.download-links li {
    margin-bottom: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #1a73e8;
}

.download-links a {
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
}

.download-links a:hover {
    color: #1a73e8;
}

.security-notice {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.security-notice h3 {
    color: #2e7d32;
    border-bottom: none;
    margin-top: 0;
}

.security-notice p {
    color: #555;
    margin: 0;
}

/* FAQ样式 */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 20px;
    font-weight: normal;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* 相关APP推荐 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.related-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

.related-card img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin: 0 auto 15px;
    object-fit: cover;
}

.related-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a237e;
}

.related-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* 底部样式 */
.site-footer {
    background: #1a237e;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #bbdefb;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #1a73e8;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #bbdefb;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbdefb;
    text-decoration: none;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #303f9f;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #bbdefb;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.seo-links a {
    color: #bbdefb;
    margin-left: 10px;
}

.seo-links a:hover {
    color: white;
}

.search-engine-links {
    margin-top: 15px;
}

.search-engine-links a {
    color: #bbdefb;
    margin: 0 10px;
    text-decoration: none;
}

.search-engine-links a:hover {
    color: white;
    text-decoration: underline;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0d47a1;
    transform: translateY(-3px);
}