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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background-color: #f8fafc;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease, opacity 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: #60a5fa;
    opacity: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

main {
    padding: 48px 0;
    min-height: calc(100vh - 200px);
}

.ad-slot {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px dashed #94a3b8;
    padding: 24px;
    text-align: center;
    margin: 24px 0;
    color: #64748b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.ad-slot-top {
    min-height: 90px;
}

.ad-slot-category-finance-news,
.ad-slot-category-in-depth-analysis,
.ad-slot-category-investment-strategy,
.ad-slot-category-personal-finance {
    min-height: 250px;
}

.ad-slot-sidebar {
    min-height: 300px;
}

.ad-slot-footer {
    min-height: 120px;
}

.ad-slot-list-1 {
    min-height: 200px;
}

.ad-slot-article-top,
.ad-slot-article-middle,
.ad-slot-article-bottom {
    min-height: 150px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.main-content,
.main-area {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.sidebar {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.category-section {
    margin-bottom: 48px;
}

.category-title {
    font-size: 1.625rem;
    color: #1e40af;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3b82f6;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Feature Mode (Financial News) */
.feature-mode {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.feature-mode .featured-article {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-mode .featured-article:hover {
    transform: translateY(-5px);
}

.feature-mode .featured-article img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
}

.feature-mode .featured-article h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #1f2937;
    font-weight: 700;
}

.feature-mode .featured-article p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.feature-mode .small-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-mode .small-article {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-mode .small-article:hover {
    transform: translateX(5px);
}

.feature-mode .small-article img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.feature-mode .small-article h4 {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 8px;
}

/* List Mode (In-Depth Analysis) */
.list-mode {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.list-mode .list-article {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
}

.list-mode .list-article:hover {
    transform: translateX(5px);
    background: #f1f5f9;
}

.list-mode .list-article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.list-mode .list-article h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1f2937;
    font-weight: 600;
}

.list-mode .list-article p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 12px;
}

/* Card Mode (Investment Strategy) */
.card-mode {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Compact Mode (Personal Finance) */
.compact-mode {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compact-mode .compact-article {
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 12px;
    border-radius: 12px;
}

.compact-mode .compact-article:hover {
    transform: translateX(5px);
    background: #f8fafc;
}

.compact-mode .compact-article img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.compact-mode .compact-article h4 {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 4px;
}

.compact-mode .compact-article .article-meta {
    margin: 0;
}

@media (max-width: 768px) {
    .feature-mode {
        grid-template-columns: 1fr;
    }
    
    .list-mode .list-article {
        grid-template-columns: 1fr;
    }
    
    .list-mode .list-article img {
        height: 200px;
    }
    
    .card-mode {
        grid-template-columns: 1fr;
    }
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    min-height: 380px;
}

.article-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 
                0 8px 16px rgba(0, 0, 0, 0.08);
}

.article-card:active {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 
                0 4px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 24px;
}

.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card:hover h3 {
    color: #1e40af;
}

.article-card p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
}

.article-meta {
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-detail {
    max-width: 820px;
    margin: 0 auto;
}

.article-detail h1 {
    font-size: 2.625rem;
    margin-bottom: 24px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-detail img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #374151;
}

.article-content p {
    margin-bottom: 24px;
}

.static-page {
    max-width: 820px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.static-page h1 {
    font-size: 2.25rem;
    margin-bottom: 32px;
    color: #0f172a;
    font-weight: 700;
}

.static-page h2 {
    font-size: 1.625rem;
    margin: 36px 0 18px;
    color: #1e40af;
    font-weight: 600;
}

.static-page p {
    margin-bottom: 18px;
    color: #4b5563;
}

footer {
    background: #0f172a;
    color: white;
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-content,
.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}

.footer-section h3 {
    margin-bottom: 18px;
    font-size: 1.15rem;
    font-weight: 600;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    footer {
        padding: 28px 0 16px;
    }

    .footer-content,
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-section h3 {
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .footer-section a {
        margin-bottom: 8px;
        font-size: 0.875rem;
        min-height: 36px;
    }

    .footer-bottom {
        padding-top: 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .nav-links {
        gap: 18px;
        font-size: 0.925rem;
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, #0f172a 0%, #1e40af 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.125rem;
        padding: 12px 0;
        width: 100%;
        display: block;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .article-detail h1 {
        font-size: 1.875rem;
    }

    .article-detail img {
        height: 260px;
    }

    .static-page {
        padding: 24px;
    }

    .main-content,
    .main-area {
        padding: 28px;
    }

    .category-title {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    main {
        padding: 32px 0;
    }

    .logo {
        font-size: 1.375rem;
    }

    .main-content,
    .main-area {
        padding: 20px;
    }

    .sidebar {
        padding: 20px;
    }

    .article-card-content {
        padding: 16px;
    }

    .article-card h3 {
        font-size: 1rem;
    }

    .article-card p {
        font-size: 0.875rem;
    }

    .article-detail h1 {
        font-size: 1.625rem;
    }

    .article-detail img {
        height: 200px;
    }

    .article-content {
        font-size: 1rem;
    }

    .static-page {
        padding: 20px;
    }

    .static-page h1 {
        font-size: 1.75rem;
    }

    .static-page h2 {
        font-size: 1.375rem;
    }

    .ad-slot-top {
        min-height: 70px;
    }

    .ad-slot-sidebar {
        min-height: 200px;
    }

    .ad-slot-category-finance-news,
    .ad-slot-category-in-depth-analysis,
    .ad-slot-category-investment-strategy,
    .ad-slot-category-personal-finance {
        min-height: 180px;
    }
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    min-height: 48px;
}

.load-more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.load-more-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.contact-form {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    min-height: 52px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.form-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.success-message {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 320px) {
    .logo {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 12px;
    }

    .main-content,
    .main-area {
        padding: 16px;
    }

    .article-card-content {
        padding: 12px;
    }

    .article-grid {
        gap: 16px;
    }

    .article-detail h1 {
        font-size: 1.5rem;
    }

    .article-detail img {
        height: 180px;
    }

    footer {
        padding: 32px 0 16px;
    }
}

/* 文章图片样式 */
.article-image {
    margin: 32px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.02);
}

.article-image figcaption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .article-image {
        margin: 24px 0;
    }

    .article-image figcaption {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .article-image {
        margin: 20px 0;
    }

    .article-image img {
        border-radius: 8px;
    }
}
