/* =================
   CSS Variables (Color Palette)
   ================= */
:root {
    --primary-color: #6D5A8A;      /* 紫罗兰主色 */
    --secondary-color: #E8B4B4;    /* 玫瑰金色 */
    --accent-color: #E2D9E8;       /* 淡紫色 */
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --gray-dark: #343A40;
    --success: #28A745;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-light: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
    --shadow-light: 0 2px 10px rgba(109, 90, 138, 0.1);
    --shadow-medium: 0 4px 20px rgba(109, 90, 138, 0.15);
    --shadow-heavy: 0 8px 30px rgba(109, 90, 138, 0.2);
}

/* =================
   Reset & Base Styles
   ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Serif KR', serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* =================
   Typography
   ================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
}

/* =================
   Layout Utilities
   ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =================
   Header & Navigation
   ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* =================
   Hero Section
   ================= */
.hero {
    min-height: 100vh;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E2D9E8" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.chart-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.stock-chart {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.stock-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.stock-chart i {
    font-size: 4rem;
    color: white;
    z-index: 2;
    position: relative;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    animation: float 3s ease-in-out infinite;
}

.floating-item:nth-child(2) {
    animation-delay: -1s;
}

.floating-item:nth-child(3) {
    animation-delay: -2s;
}

.floating-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* =================
   About Section
   ================= */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--gray-dark);
}

.expertise-list {
    display: grid;
    gap: 1rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-light);
}

.expertise-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    min-width: 24px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.image-placeholder i {
    font-size: 6rem;
    color: white;
    margin-bottom: 1rem;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.overlay-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.overlay-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* =================
   Features Section
   ================= */
.features {
    padding: 100px 0;
    background: var(--accent-color);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-row.reverse {
    grid-template-columns: 2fr 1fr;
}

.feature-row.reverse .feature-content {
    order: -1;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon-container {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    animation: pulse 2s infinite;
}

.feature-icon-container i {
    font-size: 4rem;
    color: white;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-benefits {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.feature-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.feature-benefits i {
    color: var(--success);
    font-size: 1.2rem;
}

/* =================
   Benefits Section
   ================= */
.benefits {
    padding: 100px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--gray-light);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.benefit-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--gray-medium);
    font-style: italic;
}

/* =================
   Testimonials Section
   ================= */
.testimonials {
    padding: 100px 0;
    background: var(--gradient-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-dark);
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    position: absolute;
    left: -1rem;
    top: -1rem;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.author-role {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

/* =================
   CTA Section
   ================= */
.cta-section {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.9);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.cta-feature i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* =================
   Fixed CTA Button
   ================= */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    /* animation: bounceIn 1s ease-out; */ /* 移除动画，让按钮始终可见 */
    width: max-content;
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-heavy);
    transition: all 0.3s ease;
    min-width: 300px;
    justify-content: center;
    border: 3px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(109, 90, 138, 0.3);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button i {
    font-size: 1.3rem;
}

/* =================
   Footer
   ================= */
.footer {
    background: var(--gray-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.disclaimer-text {
    font-size: 0.9rem;
    font-style: italic;
}

/* =================
   Modals
   ================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 2rem;
}

.modal-body h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.8rem;
}

.modal-body p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* =================
   Animations
   ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    60% {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =================
   Responsive Design
   ================= */

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .feature-row.reverse .feature-content {
        order: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cta-features {
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .chart-container {
        width: 250px;
        height: 250px;
    }
    
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cta-button {
        min-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .fixed-cta {
        bottom: 15px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: auto;
        width: max-content;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat {
        min-width: 120px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-text h2,
    .feature-content h3 {
        font-size: 1.8rem;
    }
    
    .chart-container {
        width: 200px;
        height: 200px;
    }
    
    .floating-item {
        width: 50px;
        height: 50px;
    }
    
    .floating-item i {
        font-size: 1.2rem;
    }
    
    .cta-button {
        min-width: auto;
        width: 100%;
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .fixed-cta,
    .floating-item {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    * {
        color-adjust: exact;
    }
}
