:root {
    /* 主色调 - 现代渐变蓝 */
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-light: #8b5cf6;
    --primary-dark: #5b21b6;
    
    /* 辅助色 - 活力配色 */
    --secondary-color: #f093fb;
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    /* 强调色 - 暖色调 */
    --accent-orange: #fa709a;
    --accent-yellow: #fee140;
    --accent-green: #30cfd0;
    --accent-coral: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* 标题颜色 - 多彩渐变 */
    --title-color-1: #4f46e5;    /* 靛蓝色 */
    --title-color-2: #06b6d4;    /* 青色 */
    --title-color-3: #8b5cf6;    /* 紫色 */
    --title-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    /* 背景色 - 温暖渐变 */
    --content-bg: linear-gradient(135deg, #fef9f3 0%, #fff5eb 50%, #fef3e2 100%);
    --card-bg: #ffffff;
    --section-bg-1: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    --section-bg-2: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --section-bg-3: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    
    /* 页脚颜色 - 深紫渐变 */
    --footer-color: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    --footer-text: #e0e7ff;
    
    /* 按钮颜色 */
    --btn-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --btn-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --btn-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --btn-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    /* 文字颜色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* 阴影效果 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-colored: 0 10px 30px -5px rgba(102, 126, 234, 0.4);
}

.title-section {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.8rem 0;
    background: var(--section-bg-1);
    border-radius: 20px;
    margin: 1rem 2rem;
    box-shadow: var(--shadow-lg);
}

.title-section h1 {
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
}

.title-section h2:nth-of-type(1) {
    color: var(--title-color-2);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.title-section h2:nth-of-type(2) {
    color: var(--title-color-3);
    font-weight: 600;
}

.content-section {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 1200px;
    margin: 2rem auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* 导航栏样式 - 渐变背景 */
.navbar {
    background: var(--primary-gradient);
    padding: 1rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    width: 100px;
    margin-left: 3rem;
}

.nav-links {
    margin-left: 2rem;
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
}

.language-btn {
    padding: 0.5rem 1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 150px;
    margin-top: 0.5rem;
    border: 2px solid #667eea;
    z-index: 1001;
}

.language-dropdown a {
    color: #ffffff;
    padding: 0.7rem 1.2rem;
    display: block;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.language-dropdown a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.language-dropdown li {
    margin: 0;
}

.language-selector:hover .language-dropdown,
.language-selector:focus-within .language-dropdown {
    display: block;
}

.logo {
    width: 100%;
    animation: wobble 2s ease-in-out;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
    padding-right: 2rem;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 页脚样式 - 深紫渐变 */
footer {
    background: var(--footer-color);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--footer-text);
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icons img.facebook-icon {
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icons img.wechat-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.shop-container {
    max-width: 1200px;
    margin: 7rem auto 2rem;
    padding: 0 1rem;
}

.image-display {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.shop-image {
    display: none;
    width: 80%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    margin: 0 auto;
    border: 4px solid white;
}

.shop-image.active {
    display: block;
}

/* 图片悬停效果 */
img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-colored);
    transition: all 0.4s ease;
}

/* Logo摇动动画 */
@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* 移动设备适配 */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .logo-container {
        width: 120px;
        margin: 0 0 1rem 0;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
    }

    .nav-links li {
        margin: 0.3rem 0.5rem;
    }
    
    .title-section h1 {
        font-size: 1.8rem;
    }
}

/* 3D 按钮样式 - 多彩渐变 */
.shop-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-height: 60vh;
    flex-wrap: wrap;
    padding: 2rem;
}

.button-3d {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    color: white;
    background: var(--btn-primary);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.button-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.button-3d:hover::before {
    left: 100%;
}

.button-3d:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(102, 126, 234, 0.4);
}

.button-3d:active {
    transform: translateY(-2px);
}

/* 抖动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.factory-btn:hover, .shop-btn:hover {
    animation: shake 0.5s ease-in-out;
}

/* 图片展示页面样式 */
.image-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.image-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.slider-image {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s ease;
}

.slider-image.active {
    display: block;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.button-3d.home {
    background: var(--btn-success);
}

.button-3d.home:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(17, 153, 142, 0.4);
}

/* 确保所有页面背景颜色一致 */
body {
    background: var(--content-bg);
    min-height: 100vh;
}

.page-indicator {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.indicator {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.indicator.active {
    color: white;
    background: var(--primary-gradient);
    font-weight: bold;
    box-shadow: var(--shadow-md);
}

/* Swiper 样式覆盖 */
.swiper {
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.swiper-slide img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
}

.swiper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

.swiper-pagination-bullet-active {
    background: var(--primary-gradient);
    width: 24px;
    border-radius: 4px;
}

/* 登录页面样式 */
.login-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 350px;
    margin: 50px auto;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.login-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-container button {
    width: 100%;
    padding: 14px;
    background: var(--btn-primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #ef4444;
    margin-top: 15px;
    text-align: center;
    display: none;
    padding: 10px;
    background: #fef2f2;
    border-radius: 8px;
    font-size: 14px;
}

.title-section {
    text-align: center;
    margin-bottom: 10px;
}

.title-section h1 {
    text-align: center;
    color: #333;
    margin: 60px auto 20px;
    width: 100%;
    position: relative;
    clear: both;
}

.title-section h2 {
    margin: 0;
}

.title-section h2.portuguese {
    margin-bottom: 5px;
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section p {
    margin: 5px 0;
    line-height: 1.4;
}

.content-section p {
    margin: 10px 0;
    text-align: justify;
}

/* 添加新的样式用于调整葡语标题 */
.title-section h2.portuguese {
    margin-top: 0;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 图片库页面样式 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
    padding: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.logout {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: var(--btn-secondary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.logout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.home-link {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: var(--btn-success);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.home-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.loading {
    text-align: center;
    grid-column: 1 / -1;
    padding: 20px;
    color: var(--primary-color);
    font-size: 18px;
}

.error {
    color: #ef4444;
    text-align: center;
    grid-column: 1 / -1;
    padding: 20px;
    background: #fef2f2;
    border-radius: 12px;
    margin: 1rem;
}

.header-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.header-buttons h1 {
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 25px;
}

.image-wrapper {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    background: white;
}

.image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

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

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 16px;
    color: #991b1b;
}

.error-message button {
    margin-top: 15px;
    padding: 12px 24px;
    background: var(--btn-primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.error-message button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 添加彩色装饰元素 */
.decorative-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

.decorative-circle-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-orange);
    top: -100px;
    right: -100px;
}

.decorative-circle-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-green);
    bottom: -50px;
    left: -50px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
