/* ========================================
   Awowfo.com - 算量软件分享平台样式表
   主色调: 深蓝(#1E40AF) + 浅灰(#F3F4F6) + 橙色(#F97316)
   ======================================== */

/* 基础重置与变量 */
:root {
    --primary: #1E40AF;
    --primary-dark: #1E3A8A;
    --primary-light: #3B82F6;
    --secondary: #F97316;
    --secondary-dark: #EA580C;
    --bg-light: #F3F4F6;
    --bg-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* 顶部导航 */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-gray);
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 15px;
}

/* 首屏 Banner */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 广告位 - Banner右侧 */
.ad-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ad-label {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.ad-banner h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.ad-banner p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* 软件推荐区 */
.featured {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 16px;
}

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

.featured-main {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
    border: 2px solid var(--primary);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.featured-icon {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
    flex-shrink: 0;
}

.featured-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.featured-info p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 14px;
}

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

/* 广告位 - 推荐区下方 */
.ad-featured {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    border: 2px dashed var(--border);
}

.ad-featured:hover {
    border-color: var(--primary-light);
    background: #eff6ff;
}

/* 软件列表 */
.software-list {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-gray);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: white;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.software-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.software-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 15px;
}

.software-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.software-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.software-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-gray);
}

.software-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.version {
    font-size: 12px;
    color: var(--text-light);
}

.download-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
}

.download-btn:hover {
    background: var(--primary-dark);
}

/* 广告位 - 列表穿插 */
.ad-inline {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    grid-column: span 2;
}

.ad-inline h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.ad-inline p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

/* 右侧固定广告位 */
.sidebar-ad {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    text-align: center;
    z-index: 100;
}

.sidebar-ad .ad-label {
    margin-bottom: 15px;
}

.sidebar-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-gray);
}

/* 教程与FAQ */
.tutorials {
    padding: 80px 0;
    background: var(--bg-white);
}

.tutorials-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tutorial-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.tutorial-item:hover {
    background: #e5e7eb;
}

.tutorial-thumb {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
}

.tutorial-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.tutorial-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.tutorial-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
}

/* FAQ */
.faq-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--primary);
}

.faq-answer {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question::after {
    content: '-';
}

/* 广告位 - 教程区 */
.ad-tutorial {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

/* 广告合作专区 */
.advertise {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.advertise .section-header h2,
.advertise .section-header p {
    color: white;
}

.advertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.advertise-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.advertise-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.advertise-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.advertise-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.advertise-card p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.ad-position-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.ad-position-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-position-info h5 {
    font-size: 16px;
    margin-bottom: 5px;
}

.ad-position-info span {
    font-size: 13px;
    opacity: 0.8;
}

.ad-position-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.advertise-cta {
    text-align: center;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-light);
    font-size: 14px;
}

.footer-column a:hover {
    color: white;
}

/* 广告位 - Footer */
.ad-footer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-stats {
        justify-content: center;
    }

    .ad-banner {
        display: none;
    }

    .featured-grid,
    .tutorials-grid {
        grid-template-columns: 1fr;
    }

    .advertise-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        gap: 20px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .featured-main {
        flex-direction: column;
        text-align: center;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .ad-inline {
        grid-column: span 1;
    }

    .ad-position-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
