/* 
 * Milano Eyes Fashion Reward - 主样式文件
 * 黑金风格设计
 */

/* ======= 基本样式重置 ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #121212;
}

/* ======= 通用样式 ======= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

a {
    text-decoration: none;
    color: #d4af37; /* 金色 */
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
}

ul {
    list-style: none;
}

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

.section {
    position: relative;
    /* 移除overflow: hidden, 允许内容正常滚动 */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #d4af37; /* 金色 */
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background-color: #d4af37;
    bottom: 0;
    left: 20%;
}

.section-description {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
}

/* ======= 按钮样式 ======= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    border: 2px solid transparent;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #d4af37;
    color: #000000;
    border-color: #d4af37;
}

.btn-primary:hover {
    background-color: transparent;
    color: #d4af37;
}

.btn-secondary {
    background-color: transparent;
    color: #d4af37;
    border-color: #d4af37;
}

.btn-secondary:hover {
    background-color: #d4af37;
    color: #000000;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ======= 导航栏样式 ======= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.95);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.logo {
    display: flex;
    align-items: center;
    height: 40px;
    margin-top: 2px;
}

.logo-img {
    height: 38px;
    margin-right: 12px;
}

.logo-icon {
    font-size: 22px;
    color: #d4af37;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    height: 40px;
}

.nav-item {
    margin-left: 28px;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    transition: color 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: #d4af37;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #d4af37;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

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

.login-btn .nav-link {
    padding: 8px 20px;
    border: 1px solid #d4af37;
    border-radius: 30px;
    background-color: transparent;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(212, 175, 55, 0.1);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn .nav-link:hover {
    background-color: #d4af37;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.login-btn .nav-link::after {
    display: none;
}

/* 统一登录按钮样式 */

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #d4af37;
    transition: all 0.3s ease;
}

/* ======= 首页/欢迎部分 ======= */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../assets/images/hero-bg.jpg') no-repeat center center/cover;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #d4af37;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #cccccc;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ======= 会员卡部分 ======= */
#membership {
    background-color: #0a0a0a;
}

.membership-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.membership-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    margin: 0 auto;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 62.5%; /* 比例16:10 */
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.membership-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(45deg, #000000, #1a1a1a);
    border: 2px solid #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-back {
    transform: rotateY(180deg);
    justify-content: center;
    align-items: center;
}

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

.card-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.card-logo img {
    height: 60px;
}

.card-info {
    margin-top: auto;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #d4af37;
}

.member-id, .member-since {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #f0f0f0;
}

.card-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/card-pattern.png') no-repeat right top;
    opacity: 0.1;
    z-index: -1;
}

.qr-code {
    width: 150px;
    height: 150px;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.qr-code img {
    width: 100%;
    height: 100%;
}

.card-terms {
    text-align: center;
    font-size: 0.8rem;
    color: #cccccc;
}

.membership-benefits {
    flex: 1;
    min-width: 300px;
}

.membership-benefits h3 {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.membership-benefits h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #d4af37;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.benefits-list li i {
    color: #d4af37;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* WebP回退 */
.webp .webp-bg { background-image: url('../images/bg.webp'); }
.no-webp .webp-bg { background-image: url('../images/bg.jpg'); }

/* Milano Eyes Fashion 设计指南 V1.0.4 */
:root {
  --primary-color: #D4AF37; /* 金色 */
  --background-color: #1A1A1A; /* 深黑色 */
  --secondary-color: #C5A028; /* 深金色 */
  --accent-color: #B8860B; /* 暗金色 */
  --text-color: #FFFFFF; /* 纯白色文字 V1.0.5 */
  --secondary-text-color: #E0E0E0; /* 浅灰色次要文字 V1.0.5 */
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
}

.card, .profile-card, .point-card {
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.btn-primary, button.primary {
  background-color: var(--primary-color);
  color: var(--background-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary, button.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color); /* V1.0.5 */
}

p, span, div {
  color: var(--text-color); /* V1.0.6 统一为纯白色 */
}
