:root {
    --primary: #6a5acd;
    --primary-light: #7b6ce0;
    --primary-dark: #5a4acd;
    --secondary: #ff7e5f;
    --secondary-light: #ff9d85;
    --light: #f9f7fe;
    --dark: #333;
    --gray: #666;
    --light-gray: #eee;
    --white: #fff;
    --pink: #fff5f7;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.margin50{
    margin: 50px auto;
}
.text-center{
    text-align: center;
}

/* 导航栏样式 */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    z-index: 10;
}

.logo i {
    font-size: 1.8rem;
}

/* 会员按钮样式 */
.vip-button {
	background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
	color: #8a6800;
	border: none;
	padding: 10px 20px;
	border-radius: 30px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 15px rgba(255, 165, 0, 0.25);
	transition: all 0.3s ease;
	text-decoration: none;
}

.vip-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(255, 165, 0, 0.35);
	background: linear-gradient(135deg, #ffdf40 0%, #ffb732 100%);
}

.vip-button:active {
	transform: translateY(1px);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    transition: all 0.4s ease;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .active a{
    color: var(--primary);
    padding-bottom: 5px;  /* 调整间距 */
    border-bottom: 2px solid #f89;  /* 控制粗细和颜色 */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(106, 90, 205, 0.4);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* 用户菜单 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}
.user-avatar img{
	border-radius: 50%;
}

.crown {
	position: absolute;
	top: -18px;
	left: -18px;
	width: 35px;
	height: 35px;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10;
	animation: shine 2s infinite;
}

.crown i {
	color: #FFA500;
	font-size: 26px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	transform: rotate(-45deg);
}
  /* 用户主页 */
    .user-dashboard {
        display: flex;
        gap: 30px;
    }

    .user-sidebar {
        width: 250px;
        background: var(--white);
        border-radius: 15px;
        box-shadow: var(--shadow);
        padding: 20px;
        height: fit-content;
    }

    .user-info {
        text-align: center;
        padding: 5px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .user-avatar-large {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: var(--primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: bold;
        margin: 0 auto 15px;
    }

    .user-name {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .user-email {
        color: var(--gray);
        font-size: 0.9rem;
    }

    .user-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 20px 0;
    }

    .stat-card {
        background: var(--light);
        border-radius: 10px;
        padding: 15px;
        text-align: center;
    }

    .stat-number {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 5px;
    }

    .stat-label {
        font-size: 0.9rem;
        color: var(--gray);
    }

    .dashboard-menu {
        list-style: none;
        margin-top: 20px;
    }

    .menu-item {
        padding: 6px 30px;
        border-radius: 8px;
        margin-bottom: 3px;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .menu-item:hover, .menu-item.active {
        background: rgba(106, 90, 205, 0.1);
        color: var(--primary);
    }

    .menu-item i {
        width: 20px;
        text-align: center;
    }

    .menu-item a {
      padding: 10px 20px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--dark);
      text-decoration: none;
      transition: var(--transition);
    }

    .user-content {
        flex: 1;
        background: var(--white);
        border-radius: 15px;
        box-shadow: var(--shadow);
        padding: 30px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
        color: var(--primary);
        padding-bottom: 15px;
        border-bottom: 2px solid var(--light-gray);
    }

    /* 支付页面 */
    .order-summary {
        max-width: 800px;
        background: var(--white);
        border-radius: 15px;
        padding: 25px;
        box-shadow: var(--shadow);
        margin: 0 auto;
        margin-bottom: 30px;
    }

    .order-item {
        display: flex;
        justify-content: space-between;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .order-total {
        display: flex;
        justify-content: space-between;
        padding: 15px 0;
        font-weight: 700;
        font-size: 1.2rem;
    }

    .payment-options {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin: 20px 0;
    }

    .payment-option {
        border: 2px solid var(--light-gray);
        border-radius: 10px;
        padding: 15px;
        text-align: center;
        cursor: pointer;
        transition: var(--transition);
    }

    .payment-option:hover, .payment-option.selected {
        border-color: var(--primary);
        background: rgba(106, 90, 205, 0.05);
    }

    .payment-option i {
        font-size: 2rem;
        margin-bottom: 10px;
        color: var(--gray);
    }

    .payment-option.selected i {
        color: var(--primary);
    }

    /* 快递信息页面 */
    .shipping-form {
        background: var(--white);
        border-radius: 15px;
        padding: 30px;
        box-shadow: var(--shadow);
        /*max-width: 800px;*/
    }

    /* 订单列表 */
    .orders-list {
        display: grid;
        gap: 20px;
    }

    .order-card {
        border: 1px solid var(--light-gray);
        border-radius: 10px;
        padding: 20px;
        display: flex;
        gap: 20px;
        transition: var(--transition);
    }

    .order-card:hover {
        box-shadow: var(--shadow);
        transform: translateY(-3px);
    }

    .order-image {
        width: 120px;
        height: 120px;
        border-radius: 10px;
        overflow: hidden;
    }

    .order-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .order-details {
        flex: 1;
    }

    .order-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .order-info {
        display: flex;
        gap: 15px;
        margin-bottom: 10px;
        font-size: 0.9rem;
        color: var(--gray);
    }

    .order-info div {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .order-status {
        display: inline-block;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .status-processing {
        background: rgba(255, 193, 7, 0.2);
        color: #ff9800;
    }

    .status-shipping {
        background: rgba(33, 150, 243, 0.2);
        color: #2196f3;
    }

    .status-completed {
        background: rgba(76, 175, 80, 0.2);
        color: #4caf50;
    }

    .order-actions {
        margin-top: 15px;
        display: flex;
        gap: 10px;
    }

    /* 订单列表结束 */

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 200px;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--light-gray);
    margin: 5px 0;
}

/* 页面内容区域 */
.page {
    display: none;
    padding: 40px 0;
    min-height: calc(100vh - 120px);
}

.page.active {
    display: block;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* 表单样式 */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}

.form-footer {
    margin-top: 25px;
    text-align: center;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}


/* 相册制作区域 */
.album-grids {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

.album-item {
    border: 1px solid #6959cb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

.album-canvas-container {
    width: 100%;
    position: relative;
    background-color: #f5f7fa;
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	perspective: 1000px;
	-webkit-perspective: 1000px;
}

.album-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 20; /* 背景图置于上方 */
    pointer-events: none; /* 关键修改：让背景图不接收鼠标事件 */
}

/* 编辑控制样式 */
.object-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 100; /* 控制按钮置于最上方 */
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-container:hover .object-controls,
.photo-container.selected .object-controls {
    opacity: 1;
}

.control-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background-color: #f0f2f5;
    color: #666;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.control-btn:hover {
    background-color: #e4e6eb;
}

.control-btn:active {
    background-color: #d9dbdf;
}

.delete-btn {
    background-color: #ff4d4f;
    color: white;
}

.delete-btn:hover {
    background-color: #f5222d;
}

/* 照片容器样式 */
.photo-container {
    position: absolute;
    overflow: hidden;
    z-index: 10; /* 照片置于背景图下方 */
    transform-origin: center;
    transition: box-shadow 0.3s;
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.photo-container.selected {
    box-shadow: 0 0 0 2px #6a5acd;
}
/* 选中状态指示器 */
.photo-container.selected::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border: 2px solid #5a4caa;
	border-radius: inherit;
	pointer-events: none;
}

.photo-img {
    position: absolute;
    max-width: none;
    max-height: none;
    transform-origin: center;
    cursor: move;
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}
/* 新增工具栏样式 */
.photo-editor-toolbar {
	position: fixed;
	z-index: 9999;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 8px;
	display: none;
	transition: opacity 0.2s, transform 0.2s;
}

.photo-editor-toolbar.visible {
	display: flex;
	opacity: 1;
	transform: translateY(0);
}

.photo-editor-toolbar .tool-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: none;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin: 0 2px;
	color: #333;
	transition: all 0.2s;
}

.photo-editor-toolbar .tool-btn:hover {
	background-color: #f5f5f5;
	color: #5a4caa;
}

.photo-editor-toolbar .tool-btn.delete-btn {
	color: #ff4d4f;
}

.photo-editor-toolbar .tool-btn.delete-btn:hover {
	background-color: #fff1f0;
}
/* 关键修改：照片占位框样式 */
.photo-placeholder {
    position: absolute;
    z-index: 30; /* 占位框置于最上层，确保能被点击 */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary);
    cursor: pointer; /* 显示手型光标 */
    /*background-color: rgba(255, 255, 255, 0.3); */
    background: rgba(106, 90, 205, 0.1);
    transition: all 0.3s ease;
}

.placeholder-label {
    color: #6a5acd;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    font-size: 14px;
}

.editor-controls {
    margin-top: 20px;
}

.control-section {
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.control-section h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    color: #333;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #6a5acd;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light);
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary);
    background-color: rgba(106, 90, 205, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-area p {
    color: var(--gray);
    margin-top: 10px;
}

input[type="file"] {
    display: none;
}

/* 编辑工具 */
.edit-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.tool-btn {
    padding: 12px;
    border-radius: 8px;
    background: var(--light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-btn i {
    font-size: 1.5rem;
    color: var(--primary);
}

.tool-btn:hover {
    background: rgba(106, 90, 205, 0.1);
    transform: translateY(-3px);
}

.tool-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tool-btn.active i {
    color: var(--white);
}

/* 缩略图区域 */
.thumbnails-container {
    margin-top: 20px;
}

.thumbnails-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.thumbnail-item {
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-item:hover {
    border-color: var(--primary);
}

.thumbnail-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 首页样式 */
#home {
    padding: 0;
}

.hero {
    /*background: linear-gradient(135deg, rgba(106, 90, 205, 0.1) 0%, rgba(255, 126, 95, 0.1) 100%);*/
    background:rgba(255, 126, 95, 0.1);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 90, 205, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.2;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* 产品展示区 */
.products-section {
    background: #f0e6f2;
    padding: 60px 0;
    margin-top: 1px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 20px auto 0;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--pink);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(106, 90, 205, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    
}

.product-features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.feature-item i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
}

.product-actions {
    margin-top: 25px;
}

/* 制作流程 */
.process-section {
    margin-top: 1px;
    padding: 80px 0;
    /*background: linear-gradient(135deg, rgba(255, 183, 166, 0.1) 100%, rgba(106, 90, 205, 0.1) 0%);*/
    background:rgba(106, 90, 205, 0.1);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: var(--primary-light);
    z-index: 1;
}

.step {
    width: 22%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-light);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* 行动号召区 */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-button {
    background: var(--white);
    color: var(--primary);
    font-size: 1.2rem;
    padding: 16px 40px;
    font-weight: 600;
}

.cta-button:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 页脚 */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.95rem;
}

.bigbtn{
    padding: 10px 55px !important;
    font-size: 16px !important;
}

 /* 预览模态框 */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.preview-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    text-align: center;
    position: relative;
}

.preview-image {
    max-width: 100%;
    max-height: 70vh;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.download-btn {
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 10;
}

 /* 加载指示器 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    color: white;
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 5px solid var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 - 移动端优化 */

@media (max-width: 768px) {

    .page-header h1 {
        font-size: 2rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .editor-controls {
        width: 100%;
    }

    .user-dashboard {
        flex-direction: column;
    }

    .user-sidebar {
        width: 100%;
    }

    .user-info {
        display: inline-block;
    }

    .dashboard-menu{
        display: inline-block;
        float: right;
    }

    .orders-list {
        grid-template-columns: 1fr;
    }

    .order-card {
        flex-direction: column;
    }

    .order-image {
        width: 100%;
        height: 200px;
    }
    
    .step {
        width: 100%;
    }
    
    .nav-links {
        display: none;
    }

    .canvas-container {
        height: 40vh;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 15px;
        transform: translateY(-150%);
        z-index: 99;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }


	.vip-button {
		justify-content: center;
	}
    
    .nav-buttons.active {
        transform: translateY(0);
    }
    
    .control-section h3 {
        font-size: 1.1rem;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .tool-btn span {
        font-size: 0.85rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
	
	.process-steps::before {
		width: 0%;
	}
	.photo-editor-toolbar {
		bottom: 20px;
		top: auto !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
	}
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }

    .nav-links {
        margin: 0 20px;
        display: none;
    }

    .user-stats {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .user-sidebar {
        width: 100%;
    }

    .user-info {
        display: inline-block;
    }
    .dashboard-menu{
        display: inline-block;
        float: right;
    } 
	.process-steps::before {
		width: 0%;
	}

    .canvas-container {
        height: 40vh;
    }

    .page-header p {
        font-size: 1rem;
    }
    
    .edit-tools {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .tool-btn {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.3rem;
    }
	
	.photo-editor-toolbar {
		bottom: 20px;
		top: auto !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
	}
}