/* Import Google Fonts - Inter for app consistency */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Based on app_theme.dart */
:root {
    /* Main Colors from AppColors class */
    --primary-color: #6750A4;        /* Primary purple */
    --primary-container: #EADDFF;    /* Primary container */
    --on-primary: #FFFFFF;           /* Text on primary */
    --on-primary-container: #21005E; /* Text on primary container */
    
    --secondary-color: #625B71;      /* Secondary */
    --secondary-container: #E8DEF8;  /* Secondary container */
    --on-secondary: #FFFFFF;         /* Text on secondary */
    --on-secondary-container: #1E192B; /* Text on secondary container */
    
    --accent-color: #7F67BE;         /* Accent color */
    --accent-container: #E6DEFF;     /* Accent container */
    
    --background-color: #F6F5F7;     /* Background */
    --surface: #FFFFFF;              /* Surface */
    --surface-variant: #E7E0EC;      /* Surface variant */
    
    --error-color: #BA1A1A;          /* Error */
    --error-container: #FFDAD6;      /* Error container */
    --success-color: #0F8644;        /* Success */
    --success-container: #D1F7C4;    /* Success container */
    --info-color: #0E639C;           /* Info */
    --info-container: #E0F7FA;       /* Info container */
    --warning-color: #F49D1A;        /* Warning */
    
    --text-primary: #1C1B1F;         /* Text primary */
    --text-secondary: #49454F;       /* Text secondary */
    --on-background: #1C1B1F;        /* Text on background */
    --on-surface: #1C1B1F;           /* Text on surface */
    --on-surface-variant: #49454F;   /* Text on surface variant */
    
    --income-color: #0F8644;         /* Income color */
    --expense-color: #BA1A1A;        /* Expense color */
    
    /* Category colors for visual elements */
    --category-purple: #6750A4;      /* Primary purple */
    --category-coral: #F25D54;       /* Coral red */
    --category-amber: #FFA000;       /* Amber */
    --category-blue: #1976D2;        /* Blue */
    --category-teal: #00695C;        /* Teal */
    --category-brown: #5D4037;       /* Brown */
    --category-purple-light: #8E24AA; /* Purple light */
    --category-red: #B71C1C;         /* Red */
    --category-pink: #F06292;        /* Pink */
    --category-blue-grey: #546E7A;   /* Blue grey */
    --category-red-light: #E57373;   /* Red light */
    --category-blue-grey-light: #78909C; /* Blue grey light */
    
    /* Border Radius from AppBorderRadius class */
    --border-radius-card: 16px;
    --border-radius-input: 12px;
    --border-radius-button: 28px;
    --border-radius-dialog: 28px;
    --border-radius-small: 8px;
    --border-radius-medium: 12px;
    --border-radius-large: 16px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Shadows - Material Design inspired */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.14);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.10), 0 6px 10px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    font-size: 16px;
}

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

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

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

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.subsection-title {
    text-align: center;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

.subsection-description {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation */
header {
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    height: 70px;
}

.logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.3rem 0;
    color: var(--text-primary);
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-container);
    overflow: hidden;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background-color: var(--accent-container);
    border-radius: 50%;
    opacity: 0.5;
    z-index: 0;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--primary-color);
    line-height: 1.1;
}

.by-line {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
    display: inline-block;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--on-primary-container);
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone Frame Styling */
.phone-frame {
    position: relative;
    width: 280px;
    height: 570px;
    background-color: #111;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    margin: 0 auto;
    border: 1px solid #444;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background-color: #111;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.app-store-button, .play-store-button {
    height: 50px;
    display: inline-block;
    transition: var(--transition);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.app-store-button:hover, .play-store-button:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.store-badge {
    height: 50px;
    width: auto;
    display: inline-block;
    max-width: 135px;
    background-color: transparent;
}

/* Features Section */
#features {
    padding: var(--spacing-xl) 0;
    background-color: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: var(--surface);
    border-radius: var(--border-radius-card);
    padding: var(--spacing-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    border: 1px solid var(--surface-variant);
}

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

.feature-icon {
    margin-bottom: var(--spacing-sm);
    background-color: var(--primary-container);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-medium);
}

.feature-icon .material-symbols-rounded {
    font-size: 32px;
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.pro-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 8px;
    background-color: var(--primary-color);
    color: var(--on-primary);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Category Grid (for expense categories visualization) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.category-icon .material-symbols-rounded {
    font-size: 22px;
    color: white;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Screenshots Section */
#screenshots {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-color);
}

.screenshots-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.screenshot {
    text-align: center;
    width: 300px;
}

.screenshot p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: var(--spacing-sm);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-md);
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--surface-variant);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    width: 26px;
    border-radius: 10px;
}

/* Subscription Plans Section */
#plans {
    padding: var(--spacing-xl) 0;
    background-color: var(--surface);
}

.plans-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
}

.plan-card {
    background-color: var(--surface);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--surface-variant);
    transition: var(--transition);
}

/* Add this to your existing CSS file, or modify if a similar rule exists */

/* Assuming your disclaimer is in a 'plan-footer' div as suggested before */
.plan-card .plan-footer {
    margin-top: var(--spacing-sm); /* Use your defined spacing variable */
    padding: 0 var(--spacing-sm) var(--spacing-sm) var(--spacing-sm); /* Consistent padding */
  }
  
  .plan-card .disclaimer-text {
    font-size: 0.85em;  /* Makes it 85% of the parent's font size. Adjust 0.8em or 0.75em if you want it even smaller. */
    font-style: italic; /* This makes the text italic. */
    color: var(--text-secondary); /* Uses your defined secondary text color for a slightly less prominent look. */
    line-height: 1.4;   /* Good for readability of smaller text. */
    text-align: left;   /* Or 'center' if you prefer, depending on your card layout. */
  }
  
  /* You might also want to style the asterisk in the price line to match or be less obtrusive */
  .plan-card .plan-price .price-disclaimer {
    font-size: 0.75em;
    vertical-align: super; /* Makes the asterisk a superscript */
    color: var(--text-secondary); /* Match disclaimer color or make it slightly different */
    margin-left: 2px; /* Small space from the price */
  }

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

.plan-header {
    margin-bottom: var(--spacing-md);
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.plan-price {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.plan-features {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.plan-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.plan-feature-item .material-symbols-rounded {
    margin-right: 10px;
    font-size: 20px;
}

.feature-included {
    color: var(--success-color);
}

.feature-excluded {
    color: var(--text-secondary);
    opacity: 0.6;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.plan-cta {
    margin-top: auto;
}

.plan-button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--on-primary);
    border-radius: var(--border-radius-button);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.plan-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.plan-button-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.plan-button-outline:hover {
    background-color: var(--primary-container);
    color: var(--on-primary-container);
}

.plan-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--primary-container);
    color: var(--on-primary-container);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

/* Pro Plan specific styling */
.plan-card.pro {
    border-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.plan-card.pro::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--primary-color);
    color: var(--on-primary);
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 600;
    transform: rotate(45deg);
}

/* Download Section */
#download {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-container);
    text-align: center;
    position: relative;
}

#download::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--surface);
    clip-path: ellipse(50% 60% at 50% 100%);
}

#download p {
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    color: var(--on-primary-container);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#download .cta-buttons {
    justify-content: center;
}

/* Footer */
footer {
    background-color: var(--surface);
    color: var(--text-primary);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid var(--surface-variant);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.footer-logo h3 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    opacity: 0.9;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-copyright {
    border-top: 1px solid var(--surface-variant);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Transaction Card Preview (for mock records in home screen) */
.transaction-preview {
    background-color: var(--surface);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--surface-variant);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-sm);
}

.transaction-icon .material-symbols-rounded {
    font-size: 20px;
    color: white;
}

.transaction-content {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.transaction-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: 600;
    font-size: 1rem;
}

.amount-expense {
    color: var(--expense-color);
}

.amount-income {
    color: var(--income-color);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .feature-card {
        padding: var(--spacing-sm);
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content, .hero-image {
        flex: 100%;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .screenshots-carousel {
        gap: var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .plan-card {
        min-width: 100%;
    }
}

@media (max-width: 580px) {
    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 5px 0;
    }

    header {
        padding: 5px 0;
    }

    nav {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .logo {
        margin-bottom: 10px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 490px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-icon .material-symbols-rounded {
        font-size: 28px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
    }
    
    .category-icon .material-symbols-rounded {
        font-size: 24px;
    }
    
    .category-name {
        font-size: 0.7rem;
    }
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
}

.tab-button {
    background-color: var(--surface);
    border: 1px solid var(--surface-variant);
    border-radius: var(--border-radius-button);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover {
    background-color: var(--surface-variant);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: var(--on-primary);
    border-color: var(--primary-color);
}

.category-tab {
    display: none;
}

.category-tab.active {
    display: grid;
}

/* 更新手机屏幕模拟样式 */
.mock-screen {
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 状态栏样式 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 12px;
    height: 20px;
    background-color: var(--background-color);
    font-size: 10px;
    color: var(--text-primary);
}

.time {
    font-weight: 500;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 应用标题栏 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--background-color);
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 应用内容区域 */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px;
}

/* 同步状态栏 */
.sync-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    background-color: #546E7A;
    color: white;
    font-size: 12px;
    margin-bottom: 12px;
}

.sync-status .material-symbols-rounded {
    font-size: 16px;
}

/* 快速操作区域 */
.action-cards {
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.action-card {
    background-color: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--surface-variant);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.action-icon .material-symbols-rounded {
    font-size: 20px;
}

.action-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 交易列表项 */
.transaction-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--surface-variant);
}

.transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.transaction-icon .material-symbols-rounded {
    font-size: 18px;
    color: white;
}

.transaction-content {
    flex: 1;
    min-width: 0;
}

.transaction-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.transaction-amount {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.expense {
    color: var(--expense-color);
}

.income {
    color: var(--income-color);
}

/* 底部导航栏 */
.bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 48px;
    background-color: var(--surface);
    border-top: 1px solid var(--surface-variant);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 10px;
    padding: 6px 0;
}

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

.nav-item .material-symbols-rounded {
    font-size: 18px;
    margin-bottom: 2px;
}

.nav-label {
    font-size: 9px;
}

/* 年度报告卡片 */
.year-card {
    background-color: var(--surface);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.year-badge {
    background-color: #E6DEFF;
    color: var(--primary-color);
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 12px;
}

.year-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.year-icon {
    color: var(--primary-color);
    font-size: 22px;
}

.year-details {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 报告标签 */
.report-tabs {
    display: flex;
    border-bottom: 1px solid var(--surface-variant);
    margin-bottom: 12px;
}

.report-tab {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
}

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

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

/* 图表样式 */
.chart-container {
    margin: 20px 0;
    text-align: center;
}

.donut-chart {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.donut-chart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: var(--background-color);
    border-radius: 50%;
}

.chart-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 2;
}

/* 详情卡片 */
.details-card {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0;
}

.details-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--surface-variant);
}

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

.detail-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.detail-text {
    flex: 1;
    font-size: 12px;
    color: var(--text-primary);
}

.detail-value {
    font-weight: 500;
    font-size: 12px;
}

/* 预算卡片 */
.budget-card {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.budget-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.budget-icon .material-symbols-rounded {
    font-size: 18px;
    color: white;
}

.budget-info {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.budget-details {
    flex: 1;
}

.budget-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.budget-amount {
    font-size: 13px;
    font-weight: 500;
    text-align: right;
}

.budget-total {
    font-size: 11px;
    color: var(--text-secondary);
}

.budget-progress {
    height: 8px;
    background-color: var(--surface-variant);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0%;
}

/* 更多样式根据需要添加 */
.remaining-text {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 3px;
}

/* 报表摘要卡片 */
.summary-card {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0;
}

.summary-section {
    margin-bottom: 12px;
}

.summary-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-primary);
}

.summary-value {
    font-size: 12px;
    font-weight: 500;
}

.summary-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon .material-symbols-rounded {
    font-size: 14px;
}

.income-text {
    color: var(--income-color);
}

.expense-text {
    color: var(--expense-color);
}

.neutral-text {
    color: var(--primary-color);
}

.divider {
    height: 1px;
    background-color: var(--surface-variant);
    margin: 6px 0;
}

/* 导出按钮 */
.export-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--surface-variant);
    color: var(--text-secondary);
    border-radius: 20px;
    padding: 10px 14px;
    margin: 10px 0;
    font-size: 12px;
}

.export-button .material-symbols-rounded {
    font-size: 16px;
}

/* 趋势图表 */
.trend-chart {
    height: 180px;
    margin: 12px 0;
    position: relative;
    padding-bottom: 20px;
}

.chart-bar {
    position: absolute;
    bottom: 20px;
    width: 12px;
    border-radius: 3px 3px 0 0;
}

.chart-bar.expense {
    background-color: var(--expense-color);
    z-index: 1;
}

.chart-bar.income {
    background-color: var(--income-color);
    z-index: 1;
}

.chart-month {
    position: absolute;
    bottom: 0;
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    width: 30px;
    margin-left: -9px; /* Center under bar groups */
}

.chart-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--surface-variant);
}

.chart-label {
    position: absolute;
    left: 0;
    font-size: 9px;
    color: var(--text-secondary);
}

/* 饼图图例 */
.chart-legend {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 11px;
    margin-right: 10px;
    white-space: nowrap;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 5px;
}

.legend-text {
    color: var(--text-secondary);
    margin-right: 5px;
}

.legend-value {
    font-weight: 500;
    color: var(--text-primary);
} 