/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    background-color: #0a0a1a;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
}

/* 科技感线条 */
@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    height: 1px;
    width: 100%;
    animation: pulse 3s infinite;
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 15px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
}

.nav {
    width: 100%;
}

.nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.nav-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    transition: left 0.3s ease;
}

.nav-link:hover::after {
    left: 0;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

/* 页面内容样式 */
main {
    margin-top: 70px;
    padding: 20px;
    position: relative;
}

/* 区块标题样式 */
.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #3498db;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, rgba(52, 152, 219, 0));
}

/* 公司简介样式 */
.about {
    padding: 20px;
    background-color: rgba(16, 16, 32, 0.8);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    animation: pulse 3s infinite;
}

.about-content {
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.about-content p {
    margin-bottom: 15px;
    color: #e0e0e0;
}

/* 服务展示样式 */
.services {
    padding: 20px;
    background-color: rgba(16, 16, 32, 0.8);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    animation: pulse 3s infinite;
}

.company-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.company-info p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #e0e0e0;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    background-color: rgba(20, 20, 40, 0.8);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(155, 89, 182, 0.05) 100%);
    z-index: 0;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

.service-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #3498db;
    position: relative;
    z-index: 1;
}

.service-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: #e0e0e0;
    transition: all 0.2s ease;
}

.service-features li:before {
    content: "▶";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
    transition: transform 0.2s ease;
}

.service-features li:hover:before {
    transform: translateX(5px);
    color: #9b59b6;
}

.buy-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.buy-btn:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    z-index: -1;
}

.buy-btn:hover::before {
    animation: shine 1s ease;
}

/* 购买页面样式 */
.buy-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-info {
    background-color: rgba(16, 16, 32, 0.8);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    animation: pulse 3s infinite;
}

.service-detail {
    background-color: rgba(20, 20, 40, 0.8);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.shipping-info {
    background-color: rgba(16, 16, 32, 0.8);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.shipping-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    animation: pulse 3s infinite;
}

.info-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #e0e0e0;
}

.form-group input {
    padding: 12px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 4px;
    font-size: 16px;
    background-color: rgba(20, 20, 40, 0.8);
    color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.payment-method {
    background-color: rgba(16, 16, 32, 0.8);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.payment-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    animation: pulse 3s infinite;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(20, 20, 40, 0.8);
}

.payment-option:hover {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.payment-option input:checked + .payment-icon {
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.payment-option input {
    margin-right: 15px;
}

.payment-icon {
    font-size: 16px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.order-confirm {
    background-color: rgba(16, 16, 32, 0.8);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.order-confirm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    animation: pulse 3s infinite;
}

.order-info {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    color: #e0e0e0;
}

.order-item.total {
    font-weight: bold;
    color: #3498db;
    border-bottom: none;
    padding-top: 15px;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #27ae60, #219a52);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #219a52, #27ae60);
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.5);
    transform: translateY(-2px);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    animation: shine 1s ease;
}

/* 页脚样式 */
.footer {
    background-color: rgba(10, 10, 26, 0.95);
    color: #fff;
    padding: 30px 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    animation: pulse 3s infinite;
}

.footer-content {
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.footer-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.footer-content p {
    margin-bottom: 8px;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.footer-content p:hover {
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 16px;
    }

    main {
        margin-top: 60px;
        padding: 15px;
    }

    .about,
    .services {
        padding: 15px;
    }

    .service-item {
        padding: 12px;
    }

    .service-title {
        font-size: 15px;
    }

    .service-price {
        font-size: 18px;
    }

    .service-features li {
        font-size: 13px;
    }

    .buy-btn {
        padding: 10px;
        font-size: 15px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 发光动画 */
@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.service-item,
.service-info,
.shipping-info,
.payment-method,
.order-confirm {
    animation: fadeIn 0.3s ease-out;
}

/* 表单验证样式 */
input:valid {
    border-color: #27ae60;
}

input:invalid {
    border-color: #e74c3c;
}

/* 按钮禁用样式 */
button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}
