/* 
===============================
   MAIN STYLESHEET - HairTypeAI
===============================
*/

/* 
===============================
   TABLE OF CONTENTS
===============================
1. Variables
2. Global Styles
3. Typography
4. Buttons & Links
5. Layout & Container
6. Header & Navigation
7. Footer
8. Mobile Navigation
9. Hero Section
10. Hairstyle Studio Section
11. How It Works Section
12. Notification Styles
===============================
*/

/* 
===============================
   1. Variables
===============================
*/
:root {
    /* Colors */
    --primary-color: #FF7E33; /* Orange for navigation bar */
    --primary-dark: #E86418;
    --primary-light: #FFB38A;
    --secondary-color: #3DA5D9; /* Blue accent color */
    --accent-color: #73D2DE; /* Teal accent */
    --bg-color: #FFF8EF; /* Light beige background */
    --dark-color: #2D3047; /* Dark blue/gray for text */
    --gray-color: #7C7C7C;
    --light-gray: #E9E9E9;
    --white: #FFFFFF;
    --success: #5CB85C;
    --error: #D9534F;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Box Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Container Width */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
}

/* 
===============================
   2. Global Styles
===============================
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

section {
    padding: 40px 0;
}

/* 
===============================
   3. Typography
===============================
*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

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

.text-right {
    text-align: right;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: var(--gray-color);
}

/* 
===============================
   4. Buttons & Links
===============================
*/
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

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

/* 
===============================
   5. Layout & Container
===============================
*/
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.33%; max-width: 8.33%; }
.col-2 { flex: 0 0 16.66%; max-width: 16.66%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.33%; max-width: 33.33%; }
.col-5 { flex: 0 0 41.66%; max-width: 41.66%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.33%; max-width: 58.33%; }
.col-8 { flex: 0 0 66.66%; max-width: 66.66%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.33%; max-width: 83.33%; }
.col-11 { flex: 0 0 91.66%; max-width: 91.66%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Flex utilities */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-around {
    justify-content: space-around;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Spacing utilities */
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pt-5 { padding-top: var(--spacing-xl); }

.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pb-5 { padding-bottom: var(--spacing-xl); }

/* 
===============================
   6. Header & Navigation
===============================
*/
.header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 160px;
}

.logo img {
    max-height: 40px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
}

.nav-item {
    margin: 0 var(--spacing-sm);
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.auth-buttons .btn {
    margin-left: var(--spacing-xs);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--white);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

/* 
===============================
   7. Footer
===============================
*/
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

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

.footer-logo {
    flex: 0 0 100%;
    max-width: 180px;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    gap: var(--spacing-xl);
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: var(--light-gray);
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* 
===============================
   8. Mobile Navigation
===============================
*/
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    overflow-y: auto;
    transition: right var(--transition-normal);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-container {
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-nav-close {
    text-align: right;
    margin-bottom: var(--spacing-md);
}

.mobile-nav-close span {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray-color);
}

.mobile-nav-list {
    margin-bottom: var(--spacing-lg);
}

.mobile-nav-item {
    margin-bottom: var(--spacing-sm);
}

.mobile-nav-link {
    display: block;
    padding: var(--spacing-xs) 0;
    color: var(--dark-color);
    font-weight: 500;
    border-bottom: 1px solid var(--light-gray);
}

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

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: auto;
}

/* 
===============================
   9. Hero Section
===============================
*/
.hero-section {
    position: relative;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 70px; /* To account for fixed header */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F8F0E5 0%, #FFF8EF 100%);
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 126, 51, 0.05);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl) 0;
}

.hero-text {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: var(--spacing-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-color);
    margin-bottom: var(--spacing-lg);
}

.hero-stats {
    display: flex;
    margin-bottom: var(--spacing-lg);
}

.stat-item {
    margin-right: var(--spacing-lg);
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -20px;
    height: 80%;
    width: 1px;
    background-color: var(--light-gray);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-image {
    flex: 0 0 45%;
    max-width: 500px;
    position: relative;
    z-index: 5;
    animation: fadeIn 1.5s ease-out;
    margin-left: var(--spacing-md);
}

.before-after-container {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.before-image, .after-image {
    width: 100%;
    position: relative;
}

.before-image img, .after-image img {
    width: 100%;
    height: auto;
    display: block;
}

.before-after-container .label {
    position: absolute;
    top: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 20px;
}

.before-image .label {
    right: 15px;
}

.after-image .label {
    left: 15px;
}

/* Animated elements */
.hero-text h1,
.hero-subtitle,
.hero-stats,
.hero-cta {
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    animation: fadeIn 1.5s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero滑块对比样式 */
.hero-section .comparison-slider-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
}

.hero-section .comparison-slider {
    height: 400px;
    border-radius: 12px;
    position: relative;
}

.hero-section .comparison-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    max-width: none;
    max-height: none;
    transform: none;
    display: block;
}

.hero-section .before-image,
.hero-section .after-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section .after-image {
    width: 50%;
    border-right: 3px solid var(--white);
    transition: width 0.1s ease;
}

.hero-section .slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .handle-line {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 200%;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 126, 51, 0.5);
}

.hero-section .handle-circle {
    position: relative;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 126, 51, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease;
}

.hero-section .comparison-slider:hover .handle-circle {
    transform: none;
}

.hero-section .handle-circle i {
    color: var(--white);
    font-size: 1rem;
}

.hero-section .before-image .label,
.hero-section .after-image .label {
    position: absolute;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    color: white;
    top: 20px;
}

.hero-section .before-image .label {
    right: 20px;
    background-color: var(--primary-color);
}

.hero-section .after-image .label {
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

/* 
===============================
   10. Hairstyle Studio Section
===============================
*/
.hairstyle-studio-section {
    background-color: var(--bg-color);
    padding: var(--spacing-xl) 0;
}

.studio-container {
    display: flex;
    gap: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
    width: 100%;
}

.studio-photo-column {
    flex: 1;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.studio-options-column {
    flex: 1;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

/* Upload Interface */
.upload-interface {
    width: 100%;
}

.upload-area {
    border: 2px dashed var(--light-gray);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    text-align: center;
    background-color: rgba(255, 126, 51, 0.05);
    cursor: pointer;
    transition: none;
    position: relative;
    min-height: 300px;
    max-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

/* 确保上传区域内容总是可见的 */
.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 0;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 126, 51, 0.1);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(255, 126, 51, 0.15);
    box-shadow: 0 0 10px rgba(255, 126, 51, 0.3);
}

.upload-content {
    width: 100%;
    height: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    position: relative;
    background-color: rgba(255, 126, 51, 0.05);
    border-radius: var(--border-radius-md);
}

.upload-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.upload-content p {
    margin: 8px 0;
    color: var(--dark-gray);
}

.upload-content .icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 126, 51, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.upload-content .icon-container i {
    font-size: 32px;
    color: var(--primary-color);
    display: block !important;
}

.upload-content .upload-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: block !important;
    text-align: center;
}

.upload-content .upload-subtext {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    display: block !important;
    text-align: center;
}

.upload-content .btn {
    display: inline-block !important;
}

.upload-preview {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 10px;
    box-sizing: border-box;
    z-index: 3;
}

.upload-preview img {
    max-width: 90%;
    max-height: 280px;
    border-radius: var(--border-radius-md);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: none;
    transform: none;
}

/* Ensure empty img elements are completely hidden */
.upload-preview img:not([src]), 
.upload-preview img[src=""] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    opacity: 1;
    transform: none;
    transition: none;
}

.upload-preview:hover .remove-btn {
    opacity: 1;
    transform: none;
}

/* Drag over animation effect */
@keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

.upload-area.drag-over .icon-container {
    animation: pulse 1.5s infinite ease-in-out;
}

.upload-requirements {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--light-gray);
    padding: var(--spacing-md);
}

.upload-requirements h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.upload-requirements ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-sm);
}

.upload-requirements li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.upload-requirements li i {
    color: var(--success);
    margin-right: 10px;
}

.privacy-note {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-color);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--light-gray);
}

.privacy-note i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Hairstyle Options */
.hairstyle-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select select {
    width: 100%;
    padding: 15px 40px 15px 50px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius-md);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 1rem;
    color: var(--dark-color);
    background-color: var(--white);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.custom-select select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 126, 51, 0.2);
}

.select-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    pointer-events: none;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    pointer-events: none;
}

.create-btn {
    margin-top: var(--spacing-md);
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.create-btn:hover:not([disabled]) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.create-btn:disabled {
    cursor: not-allowed;
    background-color: var(--gray-color);
}

/* Results Container */
.results-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.results-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

.results-container .comparison-slider-container {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.results-container .comparison-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: #f0f0f0;
}

.results-container .comparison-slider img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0;
    transition: none;
    transform: none;
}

.results-container .before-image,
.results-container .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--white);
    margin: 0;
}

.results-container .before-image {
    z-index: 1;
}

.results-container .after-image {
    z-index: 2;
    width: 50%;
    transition: width 0.1s ease;
}

.results-container .handle-line {
    background-color: var(--primary-color);
    width: 3px;
    box-shadow: 0 0 10px rgba(255, 126, 51, 0.5);
}

.results-container .handle-circle {
    background-color: var(--primary-color);
    width: 44px;
    height: 44px;
    box-shadow: 0 0 15px rgba(255, 126, 51, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease;
}

.results-container .comparison-slider:hover .handle-circle {
    transform: none;
}

.results-container .handle-circle i {
    color: var(--white);
    font-size: 1rem;
}

.results-container .before-image .label,
.results-container .after-image .label {
    position: absolute;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    color: white;
    top: 20px;
}

.results-container .before-image .label {
    right: 20px;
    background-color: var(--primary-color);
}

.results-container .after-image .label {
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* Processing Indicator */
.processing-indicator {
    text-align: center;
    margin: 0;
    max-width: 100%;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-md);
    border: 1px solid rgba(255, 126, 51, 0.2);
}

/* Ensure loading indicator is completely hidden when hidden attribute is present */
.processing-indicator[hidden] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 126, 51, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-sm);
}

.processing-indicator p {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.processing-indicator .small {
    font-size: 0.8rem;
    color: var(--gray-color);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 
===============================
   11. How It Works Section (Horizontal Design)
===============================
*/
.how-it-works-section {
    background-color: var(--white);
    padding: 40px 0 25px 0; /* 减少底部padding */
}

.process-steps-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--spacing-lg) 0;
}

.step-item {
    flex: 0 0 30%;
    position: relative;
    padding: var(--spacing-md);
    background-color: var(--bg-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-normal);
}

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

.step-connector {
    flex: 0 0 5%;
    height: 2px;
    display: flex;
    align-items: center;
}

.connector-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary-light);
    position: relative;
}

.connector-line:before,
.connector-line:after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 50%;
}

.connector-line:before {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.connector-line:after {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.step-title {
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.step-description {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* 
===============================
   12. Notification Styles
===============================
*/
.upload-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    background-color: white;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    max-width: 350px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out forwards;
}

.upload-notification.error {
    border-left: 4px solid var(--error);
}

.upload-notification.success {
    border-left: 4px solid var(--success);
}

.upload-notification i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.upload-notification.error i {
    color: var(--error);
}

.upload-notification.success i {
    color: var(--success);
}

.upload-notification span {
    flex: 1;
    font-size: 0.9rem;
}

.upload-notification .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-left: 10px;
}

.upload-notification.fade-out {
    animation: slideOut 0.3s ease-in forwards;
}

/* Small loading indicator style */
.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 126, 51, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.processing-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Drag over state for upload area */
.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(255, 126, 51, 0.15);
}

/* History results display style */
.history-results-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-lg);
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Clear history button style */
.clear-history-btn {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
}

.clear-history-btn:hover {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: var(--white) !important;
}

.history-results-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.history-result-item {
    flex: 0 0 calc(33.33% - var(--spacing-md));
    max-width: calc(33.33% - var(--spacing-md));
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: none;
    cursor: pointer;
}

.history-result-item:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.history-result-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* History record placeholder style */
.history-result-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--gray-color);
}

.history-result-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.history-result-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.history-result-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: var(--spacing-xs);
    font-size: 0.8rem;
    text-align: center;
}

/* 比较滑块相关样式 - 通用 */
.comparison-slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.comparison-slider .before-image,
.comparison-slider .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.comparison-slider .after-image {
    width: 50%;
    border-right: 2px solid var(--white);
}

.comparison-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-slider .slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-slider .handle-line {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 200%;
    background-color: var(--white);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.comparison-slider .handle-circle {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.comparison-slider:hover .handle-circle {
    transform: none;
}

.comparison-slider .handle-circle i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.comparison-slider .label {
    position: absolute;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    color: white;
    top: 20px;
}

.comparison-slider .before-image .label {
    right: 20px;
    background-color: var(--primary-color);
}

.comparison-slider .after-image .label {
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Hero区域滑块特定样式 */
.hero-section .comparison-slider-container {
    max-width: 500px;
    border-radius: 12px;
}

.hero-section .comparison-slider {
    height: 400px;
    border-radius: 12px;
}

.hero-section .comparison-slider img {
    object-position: center;
    margin: 0;
    max-width: none;
    max-height: none;
    transform: none;
}

.hero-section .after-image {
    border-right: 3px solid var(--white);
}

.hero-section .handle-line {
    width: 3px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 126, 51, 0.5);
}

.hero-section .handle-circle {
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 126, 51, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-section .handle-circle i {
    color: var(--white);
    font-size: 1rem;
}

.hero-section .before-image .label,
.hero-section .after-image .label {
    position: absolute;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    color: white;
    top: 20px;
}

.hero-section .before-image .label {
    right: 20px;
    background-color: var(--primary-color);
}

.hero-section .after-image .label {
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

/* 发型展示部分 */
.hairstyle-showcase-section {
    padding: 25px 0 40px 0; /* 减少顶部padding */
    background-color: var(--light-bg);
}

.hairstyle-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.hairstyle-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: none;
    cursor: pointer;
}

.hairstyle-item:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hairstyle-image {
    position: relative;
    overflow: hidden;
    padding-top: 120%; /* 更改高宽比，使图片更小 */
}

.hairstyle-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* 移除图片放大动画效果 */
}

.hairstyle-item:hover .hairstyle-image img {
    transform: none; /* 移除鼠标悬停时的放大效果 */
}

.hairstyle-name {
    text-align: center;
    padding: 10px;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* 添加男性女性发型分类 */
.gender-category {
    margin-top: 25px;
    margin-bottom: 10px;
}

.gender-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    padding-left: 5px;
    border-left: 3px solid var(--primary-color);
}

/* FAQ部分样式 */
.faq-section {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    display: flex;
    background-color: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-number {
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    background-color: var(--primary-color);
}

.faq-content {
    flex: 1;
    padding: 24px;
}

.faq-question {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

.faq-answer {
    color: var(--text-light);
}

.faq-answer p {
    margin-top: 0;
    line-height: 1.6;
}

.faq-answer ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    text-decoration: underline;
} 