/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #0A3D3A;
    --accent-gold: #B08B59;
    --light-cream: #F9F6F0;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c7b8a;
    --success-green: #27ae60;
    --error-red: #e74c3c;
    --shadow: 0 10px 30px rgba(10, 61, 58, 0.1);
    --shadow-light: 0 5px 15px rgba(10, 61, 58, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Serif JP', serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-cream);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
}

.logo i {
    font-size: 2rem;
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-green) 0%, #0f4a46 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(176, 139, 89, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(176, 139, 89, 0.1) 0%, transparent 50%);
}

.stock-ticker {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: slideInRight 1s ease-out;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ticker-item .symbol {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.ticker-item .price {
    font-size: 1rem;
    font-weight: 600;
}

.ticker-item .price.up {
    color: var(--success-green);
}

.ticker-item .price.down {
    color: var(--error-red);
}

.ticker-item .change {
    font-size: 0.75rem;
    font-weight: 500;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    color: var(--white);
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gold);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease-out 0.5s both;
}

.hero-title .highlight {
    color: var(--accent-gold);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.7s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: slideInLeft 1s ease-out 0.9s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Hero CTA Button */
.hero-cta {
    margin-top: 40px;
    animation: slideInLeft 1s ease-out 1.1s both;
}

.hero-cta-button {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c69c63 100%);
    color: var(--white);
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Noto Serif JP', serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(176, 139, 89, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(176, 139, 89, 0.4);
}

.hero-cta-button:hover::before {
    left: 100%;
}

.hero-cta-button:active {
    transform: translateY(-1px);
}

.hero-cta-button i {
    font-size: 1.2rem;
}

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInScale 1s ease-out 0.5s both;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--white), var(--light-cream));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow);
    border: 5px solid var(--accent-gold);
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-green);
}

.image-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
}

.floating-elements {
    position: absolute;
    inset: 0;
}

.floating-chart,
.floating-coin,
.floating-trend {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

.floating-chart {
    top: 10%;
    right: 0;
    animation: float 3s ease-in-out infinite;
}

.floating-coin {
    bottom: 20%;
    left: -20px;
    animation: float 3s ease-in-out infinite 1s;
}

.floating-trend {
    top: 60%;
    right: -20px;
    animation: float 3s ease-in-out infinite 2s;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.content-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-item.right-image {
    direction: rtl;
}

.content-item.right-image .content-text {
    direction: ltr;
}

.content-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-image .image-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-green), #0f4a46);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    box-shadow: var(--shadow);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.content-image .image-placeholder:hover {
    transform: rotate(0deg) scale(1.05);
}

.content-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.content-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.content-text ul {
    list-style: none;
}

.content-text li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-dark);
}

.content-text li i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--light-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--light-cream);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-light);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 4rem;
    color: var(--accent-gold);
    font-family: serif;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.author-name {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, #0f4a46 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.benefit i {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Fixed CTA Button */
.fixed-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
    opacity: 1;
}

.cta-button {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c69c63 100%);
    color: var(--white);
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Noto Serif JP', serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(176, 139, 89, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(176, 139, 89, 0.5);
}

.cta-button i {
    font-size: 1.2rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 61, 58, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-green);
}

.modal-body {
    padding: 0 30px 30px;
    line-height: 1.6;
}

.modal-body h4 {
    color: var(--primary-green);
    margin: 20px 0 10px;
    font-weight: 600;
}

.modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-body li {
    margin: 5px 0;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(176, 139, 89, 0.4);
    }
    50% {
        box-shadow: 0 10px 30px rgba(176, 139, 89, 0.6);
    }
    100% {
        box-shadow: 0 10px 30px rgba(176, 139, 89, 0.4);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-specific styles */
.mobile-fixed-cta {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* 确保按钮始终显示 */
.fixed-cta {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    /* 增加按钮和链接的触摸区域 */
    .cta-button,
    .footer a,
    .close {
        min-height: 44px; /* iOS建议的最小触摸区域 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 优化滚动性能 */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 防止文本选择（在某些情况下改善用户体验） */
    .hero-title,
    .section-header h2,
    .feature-card h3,
    .cta-button {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* 优化表单和输入元素（如果将来需要） */
    input,
    textarea,
    select {
        font-size: 16px; /* 防止iOS放大 */
    }
    
    /* 优化模态框在移动端的体验 */
    .modal {
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 15px;
        margin-top: 25px;
    }
    
    .hero-cta {
        margin-top: 30px;
        text-align: center;
    }
    
    .hero-cta-button {
        padding: 16px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .content-item {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .content-item.right-image {
        direction: ltr;
    }
    
    .content-image {
        margin-bottom: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-card {
        padding: 30px 25px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .testimonial-card {
        padding: 30px 25px;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    /* 手机端隐藏股市实时数据 */
    .stock-ticker {
        display: none;
    }
    
    .floating-chart,
    .floating-coin,
    .floating-trend {
        display: none;
    }
    
    .hero-image {
        width: 280px;
        height: 280px;
    }
    
    .image-placeholder {
        width: 220px;
        height: 220px;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
        margin-bottom: 10px;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* 手机端fixed按钮一直显示 */
    .fixed-cta {
        max-width: calc(100% - 30px);
        bottom: 20px;
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
    }
    
    .cta-button {
        padding: 16px 25px;
        font-size: 1rem;
        border-radius: 25px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 25px 25px 0;
    }
    
    .modal-body {
        padding: 0 25px 25px;
        font-size: 0.95rem;
    }
    
    /* 优化间距和布局 */
    .container {
        padding: 0 18px;
    }
    
    .hero {
        min-height: 80vh;
        padding: 20px 0;
    }
    
    .about,
    .features,
    .testimonials,
    .cta-section {
        padding: 60px 0;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .profile-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-stats {
        gap: 12px;
        margin-top: 20px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.7rem;
    }
    
    .content-text h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .content-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    /* 超小屏幕优化按钮文本 */
    .cta-button span {
        font-size: 0.9rem;
    }
    
    .benefit {
        font-size: 1rem;
    }
    
    .benefit i {
        font-size: 1.1rem;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 98%;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero {
        min-height: 75vh;
    }
    
    .hero-cta-button {
        padding: 14px 25px;
        font-size: 0.95rem;
        max-width: 260px;
    }
    
    .hero-cta-button span {
        font-size: 0.9rem;
    }
    
    .about,
    .features,
    .testimonials,
    .cta-section {
        padding: 50px 0;
    }
}
