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

html {
    height: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #E37063;
    --secondary-color: #ec4899;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 启动画面 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #E37063 0%, #d55f51 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 2s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.splash-logo {
    text-align: center;
    animation: scaleIn 0.6s ease-out;
}

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

.splash-title {
    color: white;
    font-size: 48px;
    font-weight: bold;
    margin: 20px 0 10px;
    letter-spacing: 2px;
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

.splash-loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.page {
    display: none;
    min-height: 100vh;
    padding-bottom: 100px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.page.active {
    display: block;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo h1 {
    color: var(--white);
    font-size: 32px;
    margin-top: 16px;
    font-weight: 600;
}

.login-form {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

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

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

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

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

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

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

.forgot-link {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    margin: 16px 0;
    font-size: 14px;
}

/* Header */
.header {
    background: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.header-content h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

.header-icons {
    display: flex;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s;
}

.icon-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Search Bar */
.search-bar {
    margin: 20px;
    position: relative;
}

.search-bar svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.search-bar input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: var(--white);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 112, 99, 0.1);
}

/* AI Camera Hero Section */
.ai-camera-hero {
    margin: 20px;
    background: linear-gradient(135deg, #E37063 0%, #d55f51 100%);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(227, 112, 99, 0.3);
}

.ai-camera-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 112, 99, 0.4);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-text {
    flex: 1;
}

.hero-text h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 600;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.hero-arrow {
    flex-shrink: 0;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.icon-btn {
    position: relative;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 8px 20px;
    border: none;
    background: var(--white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 20px 100px;
}

/* Install Prompt */
.install-prompt {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 420px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 16px;
    display: none;
    z-index: 2000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.install-prompt.visible {
    display: block;
}

.install-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.install-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.install-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.install-description {
    font-size: 14px;
    color: var(--text-gray);
}

.install-actions {
    display: flex;
    gap: 8px;
}

.install-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.install-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 16px rgba(227, 112, 99, 0.3);
}

.install-btn.ghost {
    background: rgba(227, 112, 99, 0.1);
    color: var(--primary-color);
}

.install-btn:active {
    transform: translateY(1px);
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:active {
    transform: scale(0.95);
}

.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.product-description {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.add-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-btn:hover {
    background: #4f46e5;
}

/* Product Detail */
.detail-header {
    background: var(--white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
}

.product-detail-content {
    padding: 20px;
}

.detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
}

.detail-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.detail-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.detail-info {
    background: var(--white);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-gray);
    font-size: 14px;
}

.info-value {
    font-weight: 600;
    font-size: 14px;
}

.detail-actions {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    z-index: 99;
}

.action-icon {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s;
}

.action-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Posts Feed */
.posts-feed {
    padding: 0 20px 100px;
}

.post-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.post-avatar[src=""],
.post-avatar:not([src]) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-user-info {
    flex: 1;
}

.post-username {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.post-time {
    font-size: 12px;
    color: var(--text-gray);
}

.post-menu {
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 20px;
    line-height: 1;
}

.post-menu:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.post-content {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 14px;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.post-action-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: scale(1.05);
}

.post-action-btn:active {
    transform: scale(0.95);
}

.post-action-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.3s;
}

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

.nav-btn svg {
    width: 24px;
    height: 24px;
}

.nav-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* Responsive */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .posts-feed {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.post-card {
    animation: fadeIn 0.3s ease-out;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Camera Page Styles */
.camera-container {
    padding: 20px;
    padding-bottom: 100px;
    max-width: 600px;
    margin: 0 auto;
}

.camera-upload-area {
    background: var(--white);
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.camera-upload-area:hover {
    border-color: var(--primary-color);
    background: #f9fafb;
}

.camera-upload-area p {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.camera-upload-area small {
    display: block;
    margin-top: 8px;
    color: var(--text-gray);
    font-size: 14px;
}

.filename-input-area {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.filename-input-area label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.filename-input-area input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.filename-input-area input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.recognition-result {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    margin-top: 20px;
}

.recognition-success,
.recognition-error {
    text-align: center;
}

.recognition-success h3,
.recognition-error h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.recognition-success p,
.recognition-error p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.recommended-product-card {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.recommended-product-card h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.product-preview {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.product-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-preview-info {
    flex: 1;
}

.product-preview-info .product-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.product-preview-info .product-description {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.product-preview-info .product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 12px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px;
}

.supported-breeds {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: left;
}

.supported-breeds h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.supported-breeds ul {
    list-style: none;
    padding: 0;
}

.supported-breeds li {
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.supported-breeds li:last-child {
    border-bottom: none;
}

.recognition-error .btn {
    margin-top: 16px;
}

/* 购物车页面 */
.cart-container {
    padding: 20px;
    padding-bottom: 200px;
}

.cart-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-gray);
    transition: all 0.3s;
}

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

.quantity-display {
    font-size: 16px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    color: #dc2626;
    text-decoration: underline;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty svg {
    margin: 0 auto 20px;
    opacity: 0.3;
}

.cart-empty h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.cart-summary {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
}

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

/* Product Detail Page */
.product-detail-content {
    padding: 20px;
}

.product-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
}

.product-detail-header {
    margin-bottom: 20px;
}

.product-detail-header h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-detail-price {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.product-detail-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-detail-info {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    margin-bottom: 100px;
}

.product-detail-actions .btn {
    flex: 1;
}

/* 语言切换按钮 */
.language-toggle {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(227, 112, 99, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.language-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 112, 99, 0.4);
}

.language-toggle:active {
    transform: translateY(0);
}

.language-toggle svg {
    width: 20px;
    height: 20px;
}

#langText {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-toggle {
        top: 60px;
        right: 12px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .language-toggle svg {
        width: 18px;
        height: 18px;
    }
}
