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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #1f2933;
    background-color: #f5f7fb;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Nav Auth Area */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-box {
    display: none;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
    min-height: 40px;
    color: #111827;
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    margin-right: 8px;
    flex-shrink: 0;
}

.nav-user-name {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.nav-logout-btn {
    margin-left: 10px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-logout-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.nav-contact-btn {
    margin-left: 12px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    color: #0f172a;
    letter-spacing: 0.04em;
    line-height: 1;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.nav a {
    padding: 4px 0;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.2s ease;
}

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

/* 导航活跃状态 */
.nav a.active {
    color: #2563eb;
    font-weight: 600;
}

.nav a.active::after {
    width: 100%;
    background: #2563eb;
    height: 3px;
}

/* 导航悬停和活跃状态的过渡效果 */
.nav a {
    transition: color 0.3s ease, font-weight 0.3s ease, transform 0.2s ease;
}

/* 导航项的悬停效果增强 */
.nav a:not(.active):hover {
    color: #2563eb;
    transform: translateY(-1px);
}

/* 导航点击效果 */
.nav a:active {
    transform: translateY(0px) scale(0.98);
    transition: transform 0.1s ease;
}

/* 页面过渡动画 */
.page-transition {
    animation: pageFadeIn 0.3s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 导航活跃状态的额外视觉增强 */
.nav a.active {
    position: relative;
}

/* 为活跃状态添加微妙的背���效果（桌面端） */
@media (min-width: 769px) {
    .nav a.active::before {
        content: "";
        position: absolute;
        left: -8px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #2563eb;
        opacity: 0.8;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: #e0ebff;
    color: #1d4ed8;
}

.btn-secondary:hover {
    background: #d0dfff;
}

.btn-outline {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
}

.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.btn-mini {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #2563eb;
    color: #2563eb;
    cursor: pointer;
    background: #f3f6ff;
}

.btn-mini:hover {
    background: #2563eb;
    color: #fff;
}

.btn-full {
    width: 100%;
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

/* Hero */

.hero {
    padding: 56px 0 40px;
    background: radial-gradient(circle at top left, #e0ebff 0, #f3f4f6 45%, #f5f7fb 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 40px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 12px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #111827;
}

.hero h1 strong {
    color: #2563eb;
}

.hero-subtitle {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 20px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

.hero-points li {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
}

.hero-media {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px 20px 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.hero-card p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.hero-card ul {
    list-style: none;
    margin-bottom: 10px;
    font-size: 13px;
    color: #374151;
}

.hero-card li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
}

.hero-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
}

/* Sections */

.section {
    padding: 56px 0;
}

.section-alt {
    background: #f9fafb;
}

.section-highlight {
    background: #2563eb;
    color: #f9fafb;
}

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

.section-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: inherit;
}

.section-header p {
    font-size: 14px;
    color: #6b7280;
}

.section-highlight .section-header p {
    color: rgba(243, 244, 246, 0.9);
}

/* Cards & Grids */

.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #111827;
}

.card-tag {
    font-size: 12px;
    color: #2563eb;
    margin-bottom: 6px;
}

.card p {
    font-size: 13px;
    color: #4b5563;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.card .link {
    font-size: 13px;
    color: #2563eb;
}

.card-highlight {
    border-top: 3px solid #2563eb;
}

/* Service layout */

.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
    gap: 20px;
}

.service-column {
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.03);
}

.service-column h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.service-column p {
    font-size: 13px;
    color: #4b5563;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.pill-list span {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef2ff;
    color: #3730a3;
}

.list {
    font-size: 13px;
    color: #4b5563;
}

.list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
}

.list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #9ca3af;
}

/* Stats Section */
.card-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.stat-card .counter {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.stat-card p {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* Guarantee */

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.guarantee-block {
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Process */

.process-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    font-size: 13px;
}

.process-steps h3 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #111827;
}

.process-note {
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
}

/* FAQ */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-list details {
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.faq-list summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.faq-list p {
    margin-top: 8px;
    font-size: 13px;
    color: #4b5563;
}

/* Contact */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
    color: #f9fafb;
}

.contact-form-block h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.contact-form-block p {
    font-size: 13px;
    color: rgba(243, 244, 246, 0.9);
    margin-bottom: 16px;
}

.contact-form {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(191, 219, 254, 0.5);
    backdrop-filter: blur(10px);
}

.form-row {
    margin-bottom: 10px;
}

.form-row label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(209, 213, 219, 0.8);
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.5);
}

.form-tip {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(209, 213, 219, 0.9);
}

.contact-info-block h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-info-block p {
    font-size: 14px;
    color: rgba(243, 244, 246, 0.9);
    margin-bottom: 20px;
}

.contact-card {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 12px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    text-align: center;
    max-width: 360px;
    margin: 0 auto 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.contact-card .qrcode-image {
    width: 75%;
    height: auto;
    max-width: 320px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(37, 99, 235, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card .qrcode-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.qrcode-placeholder {
    border-radius: 10px;
    border: 1px dashed rgba(191, 219, 254, 0.9);
    padding: 18px 8px;
    font-size: 12px;
}

.contact-label {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(243, 244, 246, 0.9);
    font-weight: 500;
}

.contact-list {
    font-size: 15px;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
    color: #ffffff;
}

.contact-list li {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid rgba(37, 99, 235, 0.8);
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 悬停效果让联系信息更醒目 */
.contact-list li:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: translateX(4px);
}

.contact-list li strong {
    color: #ffffff;
}

.contact-list li:hover strong {
    color: #ffffff;
    text-shadow: 0 0 12px currentColor;
}

.contact-list li strong {
    color: #3b82f6;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* 为电话和邮箱添加特殊高亮 */
.contact-list li:nth-child(1) strong {
    color: #ffffff; /* 白色 - 电话 */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.contact-list li:nth-child(2) strong {
    color: #ffffff; /* 白色 - 邮箱 */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Footer */

/* User Authentication Styles */

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.auth-card-register {
    max-height: 85vh;
    overflow-y: auto;
}

.auth-card-register::-webkit-scrollbar {
    width: 6px;
}

.auth-card-register::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.auth-card-register::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.auth-card-register::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    margin-bottom: 16px;
}

.auth-logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
}

.auth-header h2 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: #64748b;
    font-size: 14px;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #334155;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #2563eb;
    border-radius: 2px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-group label .required {
    color: #ef4444;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 14px;
    z-index: 1;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.password-toggle {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: color 0.2s ease;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #2563eb;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.strength-bar.weak {
    background: #ef4444;
}

.strength-bar.medium {
    background: #f59e0b;
}

.strength-bar.strong {
    background: #10b981;
}

.strength-text {
    font-size: 12px;
    color: #6b7280;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password,
.terms-link,
.privacy-link {
    color: #2563eb;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover,
.terms-link:hover,
.privacy-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Social Login */
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: #fff;
    color: #9ca3af;
    padding: 0 16px;
    font-size: 14px;
    position: relative;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-2px);
}

.social-btn-wechat {
    color: #10b981;
    border-color: #10b981;
}

.social-btn-wechat:hover {
    background: #10b981;
    color: white;
}

.social-btn-qq {
    color: #2563eb;
    border-color: #2563eb;
}

.social-btn-qq:hover {
    background: #2563eb;
    color: white;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-footer a {
    color: #2563eb;
    font-weight: 500;
}

.auth-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px !important;
    color: #10b981 !important;
}

/* Auth Features */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.auth-features h3 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

/* Login Simple */
.login-simple {
    background: #eef2f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.login-wrapper {
    width: min(640px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 36px 48px 48px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.login-logo-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.login-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 4px 0;
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    justify-content: center;
}

.login-tab {
    border: none;
    background: none;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
}

.login-tab.active {
    color: #2563eb;
}

.login-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

.login-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.login-panel.active {
    display: flex;
}

.login-label {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
}

.login-input-group {
    position: relative;
}

.login-input-group input {
    width: 100%;
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 44px 0 42px;
    font-size: 14px;
    color: #1f2937;
    background: #fdfdfd;
}

.login-input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

.login-input-action {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.login-input-action:hover {
    color: #2563eb;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    margin-bottom: 4px;
}

.login-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

.login-check input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.login-link {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(90deg, #1e3bea, #1d4ed8);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(29, 78, 216, 0.35);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(29, 78, 216, 0.45);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 10px;
    color: #9ca3af;
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.login-footer {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    color: #6b7280;
}

.login-footer a {
    color: #2563eb;
    text-decoration: underline;
}

.login-footer a:hover {
    color: #1d4ed8;
}

@media (max-width: 640px) {
    .login-wrapper {
        padding: 28px 20px 36px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-input-group input {
        height: 46px;
    }

    .login-social {
        grid-template-columns: 1fr;
    }
}


.feature-list li:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #2563eb;
    transform: translateX(8px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-content h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* Help Section */
.help-section {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    padding: 24px;
}

.help-section h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.help-section p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    margin-bottom: 0;
}

.contact-info i {
    color: #2563eb;
    width: 16px;
    text-align: center;
}

/* Button Loading State */
.btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design for Auth */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .auth-card {
        padding: 24px;
    }

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

    .social-login {
        grid-template-columns: 1fr;
    }

    .auth-features {
        display: none;
    }

    .auth-card-register {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px;
    }

    .auth-header {
        margin-bottom: 24px;
    }

    .auth-logo-image {
        width: 60px;
        height: 60px;
    }

    .auth-header h2 {
        font-size: 20px;
    }

    .input-group input,
    .input-group select {
        padding: 10px 10px 10px 36px;
        font-size: 14px;
    }

    .password-toggle {
        right: -35px;
        padding: 6px;
        width: 28px;
        height: 28px;
    }
}

.site-footer {
    background: #020617;
    color: #e5e7eb;
    padding-top: 24px;
    margin-top: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.9);
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 6px;
}

.footer-column ul {
    list-style: none;
    font-size: 13px;
}

.footer-column li {
    margin-bottom: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 12px 0 16px;
    font-size: 12px;
    color: #9ca3af;
}

/* Nav toggle (mobile) */

.nav-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

/* Animations and Transitions */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: #2563eb;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate-fade-in-up {
    transform: translateY(30px);
}

.animate-fade-in-left {
    transform: translateX(-30px);
}

.animate-fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-in-right {
    transform: translateX(30px);
}

.animate-fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-in {
    transform: scale(0.9);
}

.animate-scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animations for cards */
.stagger-animation > * {
    opacity: 1;
    transform: none;
    transition: none;
}

.stagger-animation.animate > * {
    opacity: 1;
    transform: none;
}

.stagger-animation.animate > *:nth-child(1),
.stagger-animation.animate > *:nth-child(2),
.stagger-animation.animate > *:nth-child(3),
.stagger-animation.animate > *:nth-child(4),
.stagger-animation.animate > *:nth-child(5),
.stagger-animation.animate > *:nth-child(6) {
    transform: none;
    transition-delay: 0s;
}

/* Loading animations */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loading.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
    border-color: #2563eb;
}

/* Floating elements */
.floating-element {
    animation: float 3s ease-in-out infinite;
}

.hero-media .hero-card {
    animation: float 4s ease-in-out infinite;
}

/* Gradient animation */
.animated-gradient {
    background: linear-gradient(-45deg, #2563eb, #1d4ed8, #3b82f6, #60a5fa);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* Number counter animation */
.counter {
    display: inline-block;
    font-weight: bold;
    font-size: 2rem;
    color: #2563eb;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #2563eb;
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink 0.75s step-end infinite;
    max-width: fit-content;
}

/* Progress bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 4px;
    width: 0;
    transition: width 2s ease;
    animation: progressGlow 2s ease-in-out;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.8);
    }
}

/* Button pulse effect */
.btn-pulse {
    animation: pulse 2s infinite;
}

/* Enhanced transitions */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Shake animation for form validation */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Bounce in animation */
.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Image and Media Assets */

.hero-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.team-member {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid #e5e7eb;
}

.team-member h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111827;
}

.team-title {
    font-size: 14px;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 8px;
}

.team-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Certificate Section */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.certificate-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

/* Video Elements */
.hero-video {
    margin-top: 32px;
    text-align: center;
}

.intro-video {
    max-width: 100%;
    width: 800px;
    height: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.video-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.video-testimonial {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.testimonial-video {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    margin: 0;
}

/* QR Code Styles */
.qrcode-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Feature Icons */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    margin-bottom: 12px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

/* Simple Register Layout */
.register-page {
    padding: 48px 0 64px;
    background: #f3f6fb;
}

.register-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 28px 32px;
    border: 1px solid #e5e7eb;
}

.register-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.register-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.reg-tab {
    border: none;
    background: none;
    padding: 10px 4px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    font-weight: 600;
}

.reg-tab.active {
    color: #e86a0c;
}

.reg-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #e86a0c;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reg-panel {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.reg-panel.active {
    display: flex;
}

.reg-label {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
}

.reg-phone-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
}

.country-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111827;
    background: #f9fafb;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 44px 0 40px;
    font-size: 14px;
    color: #1f2937;
    background: #fdfdfd;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.input-wrapper.no-icon input {
    padding-left: 14px;
}

.input-wrapper.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field-error {
    color: #ef4444;
    font-size: 12px;
    min-height: 16px;
    margin-top: 2px;
}

.field-error.success {
    color: #16a34a;
}

.agree-row.error span {
    color: #ef4444;
}

.agree-row.error input {
    accent-color: #ef4444;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

.input-action {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.input-action:hover {
    color: #2563eb;
}

.code-row {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 8px;
}

.code-btn {
    border: none;
    border-radius: 8px;
    background: #2f8700;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.code-btn:hover:not(:disabled) {
    background: #276f00;
    transform: translateY(-1px);
}

.code-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.agree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    margin-top: 6px;
}

.agree-row input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.register-submit {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #1b6fbf, #155fa3);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(21, 111, 182, 0.35);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.register-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(21, 111, 182, 0.45);
}

.register-login {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
}

.register-login a {
    color: #1b6fbf;
    text-decoration: underline;
}

/* Gallery and Lightbox */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 24px;
}

/* Loading placeholder for images */
.image-placeholder {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        order: -1;
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .guarantee-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .nav {
        position: absolute;
        right: 16px;
        top: 76px;
        flex-direction: column;
        background: #fff;
        padding: 10px 14px;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(15, 23, 42, 0.16);
        border: 1px solid rgba(226, 232, 240, 0.9);
        display: none;
    }

    .nav.open {
        display: flex;
    }

    /* 移动端导航活跃状态 */
    .nav a.active {
        background: rgba(37, 99, 235, 0.1);
        color: #2563eb;
        font-weight: 600;
        border-radius: 8px;
    }

    .nav a {
        padding: 8px 12px;
        margin: 2px 0;
        border-radius: 8px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .nav a:hover {
        background: rgba(37, 99, 235, 0.05);
    }

    .nav a.active::after {
        display: none; /* 移动端不显示下划线 */
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .card-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .card-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card .counter {
        font-size: 2rem;
    }

    /* 减少移动端动画复杂度以提高性能 */
    .floating-element {
        animation: none;
    }

    .particles-container {
        display: none;
    }

    .typewriter {
        animation: none;
        border-right: none;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .card-grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-card .counter {
        font-size: 1.8rem;
    }
}
