/* Reset & Base Styles */
:root {
    --primary-color: #d4af37; /* 香槟金 */
    --primary-dark: #b5952f;
    --secondary-color: #f8f5f0; /* 珍珠白 */
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #ffffff;
    --bg-light: #faf9f7;
    --bg-dark: #2c2a26;
    --border-color: #eaeaea;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: var(--text-light);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
}

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

.section-header.text-left {
    text-align: left;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

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

.section-header.text-left h2::after {
    left: 0;
    transform: none;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

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

.nav-links .btn-contact {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
}

.nav-links .btn-contact:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: #fff;
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: #fff;
}

.bg-dark .subtitle, .bg-dark p {
    color: #ccc;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.philosophy-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.philosophy-card:hover {
    transform: translateY(-10px);
}

.philosophy-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.philosophy-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.philosophy-card p {
    color: var(--text-light);
}

/* Cases Section */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    position: relative;
    cursor: pointer;
}

.case-image {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.case-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-info {
    padding: 20px;
}

.case-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1;
}

.case-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.case-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Strength Section */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.strength-item {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.strength-item:hover {
    border-bottom-color: var(--primary-color);
    transform: translateY(-5px);
}

.strength-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.strength-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.strength-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* News & Insights Section */
.double-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.news-list, .insights-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar styling for lists */
.news-list::-webkit-scrollbar, .insights-list::-webkit-scrollbar {
    width: 6px;
}
.news-list::-webkit-scrollbar-track, .insights-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}
.news-list::-webkit-scrollbar-thumb, .insights-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.list-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition);
}

.list-item:hover {
    transform: translateX(5px);
}

.list-date {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.list-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.list-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.list-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.list-content h4:hover {
    color: var(--primary-color);
}

.list-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-info {
    flex: 1;
    padding: 60px;
    background-color: var(--primary-color);
    color: #fff;
}

.contact-info h2 {
    color: #fff;
    margin-bottom: 15px;
}

.contact-info h2::after {
    background-color: #fff;
}

.contact-desc {
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 2rem;
    color: #fff;
}

.contact-item h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-form {
    flex: 1.2;
    padding: 60px;
    background-color: #fff;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 15;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: #fff;
    background: var(--primary-color);
}

.modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    padding-right: 40px;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.modal-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body img {
    border-radius: var(--border-radius);
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .double-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile menu handling for now */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .contact-info, .contact-form {
        padding: 30px 20px;
    }
}
