/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    /*background-color: #000;*/
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 106, 229, 0.25);
}

/* 顶部导航样式 */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    /*position: sticky;*/
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
    font-size: 26px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 40px;
    position: relative;
}

nav ul li a {
    font-weight: 600;
    font-size: 16px;
    color: #444;
    padding: 8px 0;
}

nav ul li a:hover {
    color: #000;
}

nav ul li.active a {
    color: #000;
}

nav ul li.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
}

/* 右上角功能区样式 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 用户相关按钮样式 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons{
    display: flex;

}

.auth-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-shu{
    padding: 8px 0;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.language-container {
    position: relative;
}

.language-switch {
    display: flex;
    align-items: center;
    background-color: #f5f7ff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e1e6f9;
}

/* 用户信息展示样式 */
.user-info {
    display: flex;
    align-items: center;
    position: relative;
}

.username {
    font-weight: 600;
    color: #444;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 140px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    padding: 12px 20px;
}

.user-dropdown-item:hover {
    background-color: #f5f7ff;
}

.user-dropdown-item i {
    margin-right: 10px;
    width: 10px;
    color: #666;
}
.language-switch i {
    margin-right: 8px;
    color: #000;
}

.language-switch:hover {
    background-color: #eef1ff;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option:hover {
    background-color: #f5f7ff;
}

.language-option.active {
    background-color: #eef1ff;
    color: #000;
    font-weight: 600;
}


/* 底部样式 */
footer {
    background-color: #1a2332;
    color: #b0b7c3;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a:hover {
    color: #000;
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: #000;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2a3445;
    font-size: 14px;
    color: #8a94a6;
}

.site-id {
    margin-top: 10px;
    font-family: monospace;
    color: #5a8df0;
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        padding: 15px 0;
    }

    nav ul {
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 15px 10px;
    }

    .slogan h1 {
        font-size: 38px;
    }

    .slogan p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 70px 0 90px;
    }

    .main-logo {
        width: 140px;
        height: 140px;
        margin-bottom: 40px;
    }

    .main-logo i {
        font-size: 60px;
    }

    .slogan h1 {
        font-size: 32px;
    }

    .slogan p {
        font-size: 16px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 16px;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* ===== 海外平台 & WhatsApp 专用区块 ===== */
.social-platforms {

}
.platform-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
    border-radius: 6px;
    padding-left: 4px;
}
.platform-item:last-child {
    border-bottom: none;
}
.platform-item:hover {
    background: rgba(255,255,255,0.03);
}
/* 图标圆形背景 */
.platform-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 16px;
    background: #2a3445; /* fallback */
}
/* 品牌色 */
.icon-x { background: #000000; }
.icon-facebook { background: #1877f2; }
.icon-instagram { background: radial-gradient(circle at 30% 30%, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.icon-tiktok { background: #010101; }
.icon-whatsapp { background: #25d366; }
.icon-whatsapp-dark { background: #128C7E; }

.platform-detail {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1;
}
.platform-name {
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
}
.platform-account {
    font-size: 13px;
    color: #94a3b8;
    word-break: break-all;
}
.platform-account .light {
    color: #64748b;
    font-style: italic;
}

/* 响应式 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    .footer-section {
        flex: 1 1 auto;
    }
    .platform-item {
        padding: 6px 0;
    }
}

.social-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    align-items: flex-start;
}
.platform-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 180px;
    border-bottom: none;
    padding: 4px 0;
    background: transparent;
}
.platform-item:hover {
    background: transparent;
}
.platform-detail {
    line-height: 1.3;
}
/* 调整footer-section布局，让Contact Us与About Us不在同一行 */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 60px;
}
.footer-section {
    flex: 0 0 auto;
    min-width: 200px;
}
/* 让About Us独占右侧或另起一行，但按设计它本来在第二个section，自然换行 */
/* 用flex-wrap: wrap + gap 即可自然分行，无需额外干预 */
/* 同时保持美观 */
.footer-section:last-child {
    margin-left: 0;
}
/* 针对移动端可保留换行 */
@media (max-width: 980px) {
    .social-platforms {
        flex-direction: column;
        gap: 8px;
    }
    .platform-item {
        min-width: unset;
        width: 100%;
    }
}


/*当前页面样式*/
.dashboard {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .dashboard {
        flex-direction: row;
        min-height: 600px;
    }
}

/* 左侧导航样式 */
.sidebar {
    background-color: #fafbfd;
    border-right: 1px solid #eaeaea;
    width: 100%;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .sidebar {
        width: 280px;
        flex-shrink: 0;
    }
}

.nav-header {
    padding: 0 25px 20px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.user-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.user-text p {
    color: #666;
    font-size: 0.9rem;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    padding: 18px 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background-color: rgba(44, 106, 229, 0.05);
}

.nav-item.active {
    background-color: rgba(44, 106, 229, 0.1);
    border-left-color: #000;
    color: #000;
    font-weight: 600;
}

.nav-icon {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* 右侧内容区域 */
.content {
    flex-grow: 1;
    padding: 30px;
}

.content-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.content-header h2 {
    color: #000;
    font-size: 1.8rem;
}

.content-body {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 个人账号样式 */
.profile-card {
    background-color: #fafbfd;
    border-radius: 12px;
    padding: 35px;
    border: 1px solid #eaeaea;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.account-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-right: 25px;
}

.account-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #333;
}

.account-info p {
    color: #666;
    font-size: 1.1rem;
}

.account-details {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid #eaeaea;
}

.detail-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    width: 120px;
    font-weight: 600;
    color: #555;
}

.detail-value {
    flex: 1;
    color: #333;
    padding-left: 10px;
}

.password-section {
    margin-top: 40px;
}

.password-section h4 {
    color: #000;
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.password-section h4 i {
    margin-right: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 106, 229, 0.1);
}

.btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn:hover {
    background-color: #6995ee !important;
    color: #fff !important;
}

.btn i {
    margin-right: 8px;
}

/* ===== 收货地址列表样式 ===== */
.address-list {
    max-width: 900px;
    margin: 0 auto;
}

.address-card {
    background-color: #fafbfd;
    border-radius: 12px;
    padding: 25px 30px;
    border: 1px solid #eaeaea;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.address-card .address-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c6ae5;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-card .address-title .default-badge {
    background-color: #2c6ae5;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 25px;
}

.address-grid .item {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.address-grid .item:last-child {
    border-bottom: none;
}

.address-grid .item .label {
    font-weight: 600;
    color: #555;
    min-width: 100px;
}

.address-grid .item .value {
    color: #333;
    flex: 1;
}

.address-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.address-actions .btn-sm {
    padding: 6px 18px;
    font-size: 0.9rem;
    background-color: transparent;
    color: #2c6ae5;
    border: 1px solid #2c6ae5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.address-actions .btn-sm:hover {
    background-color: #2c6ae5;
    color: white;
}

.address-actions .btn-sm.danger {
    color: #e74c3c;
    border-color: #e74c3c;
}

.address-actions .btn-sm.danger:hover {
    background-color: #e74c3c;
    color: white;
}

/* 添加地址按钮 */
.add-address-btn-wrap {
    text-align: center;
    margin: 20px 0 10px;
}

.add-address-btn-wrap .btn-add {
    background-color: transparent;
    color: #2c6ae5;
    border: 2px dashed #2c6ae5;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.add-address-btn-wrap .btn-add:hover {
    background-color: rgba(44, 106, 229, 0.05);
    border-style: solid;
}

/* 添加地址表单（隐藏） */
.add-address-form {
    background-color: #fafbfd;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #eaeaea;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: none;
}

.add-address-form .form-title {
    font-size: 1.4rem;
    color: #2c6ae5;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-address-form .form-title .close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
    transition: 0.3s;
}

.add-address-form .form-title .close-btn:hover {
    color: #333;
}

.add-address-form table {
    width: 100%;
    border-collapse: collapse;
}

.add-address-form td {
    padding: 10px 8px;
    vertical-align: middle;
}

.add-address-form .label-cell {
    width: 30%;
    font-weight: 600;
    color: #555;
    text-align: right;
    padding-right: 15px;
}

.add-address-form .input-cell {
    width: 70%;
}

.add-address-form input,
.add-address-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.add-address-form input:focus,
.add-address-form select:focus {
    border-color: #2c6ae5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 106, 229, 0.1);
}

.add-address-form .btn-submit {
    text-align: center;
    padding-top: 20px;
}

.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

/* 留言板样式 */
.message-form {
    max-width: 600px;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    min-height: 180px;
    margin-bottom: 20px;
    resize: vertical;
}

textarea:focus {
    border-color: #000;
    outline: none;
}

/* 留言记录样式 */
.message-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.message-card {
    background-color: #fafbfd;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #eaeaea;
    position: relative;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eaeaea;
}

.message-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.message-date {
    color: #888;
    font-size: 0.9rem;
}

.message-content {
    color: #555;
    line-height: 1.7;
}

.message-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #000;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.no-messages {
    text-align: center;
    color: #888;
    padding: 40px 0;
    grid-column: 1 / -1;
}


.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
}

/* ===== 自定义确认对话框样式 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}
.modal-overlay.active {
    display: flex;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-box {
    background-color: white;
    border-radius: 16px;
    padding: 35px 40px 30px;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.modal-icon {
    font-size: 3.5rem;
    color: #e74c3c;
    margin-bottom: 15px;
    display: block;
}

.modal-box h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
}

.modal-box p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.modal-box .address-preview {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0 25px;
    font-size: 0.95rem;
    color: #555;
    border-left: 4px solid #2c6ae5;
    text-align: left;
}

.modal-box .address-preview strong {
    color: #2c6ae5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 5px;
}

.modal-actions .btn-modal {
    padding: 10px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-width: 100px;
}

.modal-actions .btn-cancel {
    background-color: #f0f0f0;
    color: #555;
}
.modal-actions .btn-cancel:hover {
    background-color: #e0e0e0;
}

.modal-actions .btn-confirm {
    background-color: #e74c3c;
    color: white;
}
.modal-actions .btn-confirm:hover {
    background-color: #c0392b;
}

/* 响应式 */
@media (max-width: 480px) {
    .modal-box { padding: 25px 20px; }
    .modal-actions { flex-direction: column; align-items: center; }
    .modal-actions .btn-modal { width: 100%; }
}









