﻿/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
}

/* 顶部导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    width: 100%;
}

/* 容器布局 */
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 左侧网站标题 - 红色大字 */
.site-title {
    color: #e74c3c;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 20px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    line-height: 1; /* 减少行高使上下更紧凑 */
}

/* 主标题中文 */
.title-chinese {
    font-size: 36px;
    line-height: 1.1; /* 紧凑的行高 */
}

/* 副标题英文 */
.title-english {
    font-size: 12px;
    color: #777;
    line-height: 1.2;
    margin-top: 2px; /* 很小的上边距 */
    font-weight: normal;
    letter-spacing: 0.5px;
}








/* 中间内容区域 - 两项平均分配 */
.middle-content {
    display: flex;
    flex: 1;  /* 弹性项扩展比例：1（自动填充剩余空间） */
    justify-content: space-between;  /* 主轴对齐方式：两端对齐（元素间隔均匀，首尾贴边） */
    max-width: 80%;
    margin: 0 10px;  /* 外边距：上下0，左右10像素 */
}

/* 中间两项样式 */
.intro-text, .phone {
    flex: 1;
    text-align: center;
    padding: 0 15px;
}

.intro-text {
    color: #555;
    font-size: 22px;
}

.phone {
    font-size: 26px;
    color: #2c3e50;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.phone-icon {
    font-size: 18px;
}




/* 右侧用户区域 */
.user-area {
    position: relative;
    margin-left: 20px;
}

/* 用户按钮样式 */
.user-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #2c3e50;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.user-btn:hover {
    background-color: #f5f5f5;
}

/* 下拉菜单 - 纯CSS实现 */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

/* 使用:focus-within实现下拉效果 */
.user-area:focus-within .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单项 */
.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

/* 分割线 */
.dropdown-divider {
    height: 1px;
    background-color: #A00020;
    margin: 8px 10%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .middle-content {
        display: none; /* 小屏幕隐藏中间内容 */
    }
    
    .site-title {
        font-size: 22px;
    }
    
    .user-btn {
        padding: 8px 10px;
    }
}

/* 页面主要内容样式 */
.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 30px auto;
}

/* 首页样式 */
        .hero {
            height: 600px;
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('gif/hero-bg.jpg');
            background-size: cover;
            background-position: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: white;
        }
        
        .hero h1 {
            font-size: 48px;
            margin-bottom: 20px;
        }
        
        .hero p {
            font-size: 20px;
            margin-bottom: 30px;
            max-width: 700px;
        }




/* 页脚样式 */
        footer {
            background-color: #2c3e50;
            color: white;
            padding: 50px 5%;
            text-align: center;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 30px;
        }
        
        .footer-links a {
            color: white;
            text-decoration: none;
        }
        
        .footer-links a:hover {
            text-decoration: underline;
        }
      
        .copyright {
            color: #bdc3c7;
            font-size: 14px;
        }


.container {
    width: 100%; /* 设置宽度为全屏的 100% */
    max-width:  1200px; /* 最大宽度限制1200px */
    margin: 0 auto; /* 水平居中 */
}

/* 网站标题和提示文字 */
.site-header {
    display: flex;
    align-items: center; /* 垂直居中 */
    margin-bottom: 10px; /* 与导航栏的间距 */
}

.site-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    color: #ff0000; /* 网站标题为红色 */
    white-space: nowrap; /* 防止标题换行 */
}

.site-header .subtext {
    display: block; /* 独占一行 */
    font-size: 1em; /* 字体较小 */
    font-weight: normal; /* 正常字体 */
    color: rgba(0, 0, 0, 0.8); /* 半透明黑色 */
    margin-top: 2px; /* 减少与主标题的间距 */
    line-height: 1.2; /* 调整行高，使上下两行更紧凑 */
    text-align: center; /* 文字居中 */
    color: #ff0000;
}

.site-header .slogan {
    font-size: 1em;
    color: #666; /* 提示文字颜色为灰色 */
    margin-left: 5px; /* 与标题的间距 */
    flex-grow: 1; /* 占据剩余空间 */
}


/* 导航栏 */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; /* 设置为弹性盒子 */
    flex-wrap: wrap; /* 小屏幕时自动换行 */
    justify-content: space-around; /* 均匀分布 */
    background-color: #BE0000; /* 导航栏背景颜色 */
    padding: 5px;
    border-radius: 10px; /* 圆角 */
}

nav ul li {
    flex:1; /* 均匀分布 */
    text-align: center; /* 文字居中 */
    white-space: nowrap; /* 防止标题换行 */
}


nav ul li a {
    color: #fff; /* 文字颜色为白色 */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 5px; /* 圆角 */
    transition: background-color 0.3s ease; /* 平滑过渡 */
}

nav ul li a:hover {
    background-color: #E0A000; /* 悬停时背景色 */
}

nav ul li a.active {
    background-color: #E0A000; /* 选中项背景色 */
}



a:hover{color: #d94040;outline: 0;}

.error {
    color: red;
    margin-bottom: 15px;
}



/********** 用户表单 **********/
/* ========== 表单容器样式 ========== */
.ultra-compact-form {
    background: white;               /* 白色背景 */
    padding: 1rem;                  /* 内边距 */
    border-radius: 6px;              /* 圆角 */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
    max-width: 2000px;              /* 更大的最大宽度以适应10列 */
    margin: 0 auto;                 /* 水平居中 */
}

/* ========== 表单标题 ========== */
.ultra-compact-form h1 {
    font-size: 1.1rem;              /* 标题字体大小 */
    color: #333;                    /* 文字颜色 */
    margin-bottom: 1rem;            /* 底部外边距 */
    text-align: center;             /* 居中 */
    font-weight: bold;              /* 加粗 */
}

/* ========== 表单网格布局 ========== */
.form-grid {
    display: grid;                  /* 启用网格布局 */
    grid-template-columns: repeat(12, 1fr); /* 默认12列布局 */
    gap: 0.5rem;                    /* 网格项间距 */
}

/* ========== 表单字段组 ========== */
.form-group {
    display: flex;                  /* 启用弹性布局 */
    align-items: center;            /* 垂直居中 */
    min-width: 0;                  /* 防止内容溢出 */
    margin: 0.1rem 0;              /* 上下边距 */
}

/* ========== 标签样式 ========== */
.form-group label {
    flex: 0 0 auto;                /* 不伸缩，宽度自适应 */
    font-size: 0.9rem;             /* 小号字体 */
    color: #555;                   /* 深灰色文字 */
    margin-right: 0.2rem;          /* 右侧间距 */
    white-space: nowrap;           /* 禁止换行 */
    font-weight: bold;             /* 加粗 */
}
.form-group labelr {
    flex: 0 0 auto;                /* 不伸缩，宽度自适应 */
    font-size: 1rem;             /* 字体 */
    color: #2020E0;                   /* 文字颜色 */
    margin-right: 0.2rem;          /* 右侧间距 */
    white-space: nowrap;           /* 禁止换行 */
    font-weight: bold;             /* 加粗 */
}

/* ========== 输入框通用样式 ========== */
.form-group input,
.form-group select,
.form-group textarea {
    flex: 0.8;                       /* 填充剩余空间的80% */
    padding: 0.2rem 0.3rem;        /* 内边距 */
    font-size: 0.9rem;             /* 小号字体 */
    border: 1px solid #ddd;        /* 浅灰色边框 */
    border-radius: 2px;            /* 轻微圆角 */
    height: 25px;                  /* 固定高度 */
    min-width: 0;                  /* 防止溢出 */
    box-sizing: border-box;        /* 盒模型计算 */
    font-weight: bold;             /* 加粗 */
}

/* ========== 多行文本框特殊样式 ========== */
.form-group textarea {
    height: 40px;                  /* 更高高度 */
    resize: vertical;              /* 允许垂直调整 */
}

/* ========== 复选框特殊样式 ========== */
.form-group input[type="checkbox"] {
    flex: 0;                       /* 不伸缩 */
    width: auto;                   /* 自然宽度 */
    height: auto;                  /* 自然高度 */
    margin-left: 0;                /* 移除左边距 */
}

/* ========== 确认创建按钮 ========== */
.submit-btn {
    margin-top: 1rem;              /* 顶部边距 */
    padding: 0.3rem 0.6rem;        /* 内边距 */
    background-color: #C020A0;        /* 背景 */
    color: white;                  /* 白色文字 */
    border: none;                  /* 无边框 */
    border-radius: 2px;            /* 圆角 */
    font-size: 0.9rem;             /* 小号字体 */
    cursor: pointer;               /* 手型光标 */
    display: block;                /* 块级元素 */
    margin-left: auto;             /* 右对齐 */
    font-weight: bold;             /* 加粗 */
}

/* ========== 确认修改按钮 ========== */
.submit-btnx {
    margin-top: 1rem;              /* 顶部边距 */
    padding: 0.3rem 0.6rem;        /* 内边距 */
    background-color: #C0E040;        /* 背景 */
    color: green;                  /* 绿色文字 */
    border: none;                  /* 无边框 */
    border-radius: 2px;            /* 圆角 */
    font-size: 0.9rem;             /* 小号字体 */
    cursor: pointer;               /* 手型光标 */
    display: block;                /* 块级元素 */
    margin-left: auto;             /* 右对齐 */
    font-weight: bold;             /* 加粗 */
}

/* ========== 删除按钮 ========== */
.submit-btns {
    margin-top: 1rem;              /* 顶部边距 */
    padding: 0.3rem 0.6rem;        /* 内边距 */
    background-color: #E0E0A0;        /* 背景 */
    color: red;                  /* 红色文字 */
    border: none;                  /* 无边框 */
    border-radius: 2px;            /* 圆角 */
    font-size: 0.9rem;             /* 小号字体 */
    cursor: pointer;               /* 手型光标 */
    display: block;                /* 块级元素 */
    margin-left: auto;             /* 右对齐 */
    font-weight: bold;             /* 加粗 */
}



/* ========== 按钮悬停状态 ========== */

.submit-btn:hover {
    background-color: #3a5bc7;     /* 深蓝色 */
}

/* ========== 响应式布局调整 ========== */

/* 超大屏幕 - 10列 */
@media (max-width: 2000px) {
    .form-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* 大屏幕 - 8列 */
@media (max-width: 1600px) {
    .form-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* 中等屏幕 - 6列 */
@media (max-width: 1200px) {
    .form-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 小屏幕 - 4列 */
@media (max-width: 800px) {
    .form-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 最小屏幕 - 3列 */
@media (max-width: 500px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr); /* 改为3列 */
    }
}



























/* my_date导航栏 */

.navbar {
    background: #333;
    padding: 10px;
    font-weight: bold; /* 字体加粗 */
}

.navbar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.nav-item {
    margin-right: 15px;
}

.nav-item a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

.nav-item a:hover {
    background: #555;
}

.nav-item.active a {
    background: #007bff;
}




/* neckline_style 图片展示 */

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 20px 0;
    gap: 1%;
}

/* 图片项基础样式 */
.image-item {
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    box-sizing: border-box;
}

/* 响应式布局 */
.image-item {
    width: calc(12.375% - 1px);
}

@media (max-width: 768px) {
    .image-item {
        width: calc(24.25% - 1px);
    }
}

@media (max-width: 480px) {
    .image-item {
        width: calc(49.5% - 1px);
    }
}

/* 图片样式 */
.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    box-sizing: border-box;
}

/* 图片描述 */
.image-caption {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    height: 40px;
    overflow: hidden;        /* 超出隐藏 */
    display: -webkit-box;    /* 旧版浏览器兼容 */
    -webkit-line-clamp: 2;   /* 限制显示 2 行 */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}

/* 悬停效果 */
.image-item:hover {
    transform: scale(1.02);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 90%;
    max-height: 90%;
}

.modal-content {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 60px);
    margin: 0 auto;
    object-fit: contain;
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 0px 0;
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-top: -4px;
}

.close {
    color: white;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.modal-nav-btn {
    pointer-events: auto;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 20px;
    background-color: rgba(0,0,0,0.5);
    height: 80px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    margin: 0 15px;
    transition: all 0.3s;
}

.modal-nav-btn:hover {
    background-color: rgba(0,0,0,0.8);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .modal-nav-btn {
        font-size: 30px;
        height: 60px;
        padding: 0 15px;
    }
    
    .close {
        font-size: 30px;
        right: 20px;
    }
}

.modal-content-container.small-image {
    max-width: 60%;
}

.modal-content-container.small-image .modal-caption {
    width: 100%;
}


/* fashion_style 图片展示 */



/* 图片项基础样式 */
.image-item_fashion {
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.3s ease; /* 添加平滑过渡动画 */
    will-change: transform; /* 优化动画性能 */
}

/* 图片样式 */
.image-item_fashion img {
    width: 110px;
    height: 220px;
    object-fit: contain; /* 完整显示图片，可能留白 */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    box-sizing: border-box;
}

/* 图片描述 */
.image-caption_fashion {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    width: 110px;           /* 固定宽度 */
    display: -webkit-box;    /* 旧版浏览器兼容 */
    -webkit-line-clamp: 2;   /* 限制显示 2 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;        /* 超出隐藏 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}

/* 悬停效果 */
.image-item_fashion:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 可选：添加阴影增强立体感 */
}

