/*================================================
Custom Styles for Services Page - New Sections
=================================================*/

/* Products Section Styling */
.features-section-2 .pricing-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 2px solid rgba(0, 214, 222, 0.4) !important;
  padding: 40px !important;
  border-radius: 12px;
  transition: all 0.3s ease;
}

/* Button Styling for Products Section */
.features-section-2 .default-btn,
.integration-solution-section .default-btn {
  background: transparent !important;
  border: 2px solid var(--mainColor2) !important;
  color: var(--mainColor2) !important;
  padding: 12px 30px !important;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 20px;
  overflow: visible;
}

.features-section-2 .default-btn i,
.integration-solution-section .default-btn i {
  position: static !important;
  font-size: 20px;
  transition: transform 0.3s ease;
  left: auto !important;
  top: auto !important;
}

.features-section-2 .default-btn span,
.integration-solution-section .default-btn span {
  transition: none !important;
  margin-right: 0 !important;
}

.features-section-2 .default-btn:hover,
.integration-solution-section .default-btn:hover {
  background: rgba(0, 214, 222, 0.15) !important;
  color: var(--mainColor2) !important;
  border-color: var(--mainColor2) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 214, 222, 0.3);
}

.features-section-2 .default-btn:hover span,
.integration-solution-section .default-btn:hover span {
  margin-right: 0 !important;
}

.features-section-2 .default-btn:hover i,
.integration-solution-section .default-btn:hover i {
  transform: translateX(3px);
  left: auto !important;
}

.features-section-2 .pricing-box:hover {
  border-color: rgba(0, 214, 222, 0.8) !important;
  box-shadow: 0 0 30px rgba(0, 214, 222, 0.2);
  transform: translateY(-5px);
}

.features-section-2 .pricing-box span {
  font-size: 1.2em;
  color: var(--mainColor2);
  font-weight: 600;
}

.features-section-2 .pricing-box h3 {
  font-size: 2em;
  margin: 0;
  color: var(--whiteColor);
}

.features-section-2 .pricing-box > p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--paragraphColorSecond);
}

.features-section-2 .pricing-box h4 {
  color: #00eaff;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.features-section-2 .pricing-box h4 i {
  margin-right: 8px;
}

.features-section-2 .pricing-box ul {
  list-style: none;
  padding-left: 0;
}

.features-section-2 .pricing-box ul li {
  margin-bottom: 10px;
  color: var(--paragraphColorSecond);
  line-height: 1.6;
}

.features-section-2 .pricing-box ul li i {
  margin-right: 8px;
}

.features-section-2 .pricing-box ul li strong {
  color: var(--whiteColor);
}

.features-section-2 .pricing-box .default-btn {
  margin-top: 20px;
}

/* Product Icon/Title Row */
.features-section-2 .pricing-box > div:first-of-type {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 15px;
}

.features-section-2 .pricing-box > div:first-of-type i {
  font-size: 3em;
  color: #00eaff;
  margin-right: 20px;
}

/* Comparison Table Styling */
.table-wrapper {
  overflow-x: auto;
}

/* Apply to both about-section and pain-points-section */
.about-section table.comparison-table,
.pain-points-section table.comparison-table {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(0, 214, 222, 0.3) !important;
  border-radius: 12px !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.about-section table.comparison-table thead,
.pain-points-section table.comparison-table thead {
  background: rgba(0, 214, 222, 0.1) !important;
}

.about-section table.comparison-table thead tr th,
.pain-points-section table.comparison-table thead tr th {
  color: #00eaff !important;
  padding: 20px !important;
  border-bottom: 2px solid rgba(0, 214, 222, 0.5) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  font-weight: 600 !important;
  font-size: 1.1em !important;
  vertical-align: middle !important;
  background: transparent !important;
  text-align: center !important;
}

.about-section table.comparison-table thead tr th:first-child,
.pain-points-section table.comparison-table thead tr th:first-child {
  border-top-left-radius: 12px;
}

.about-section table.comparison-table thead tr th:last-child,
.pain-points-section table.comparison-table thead tr th:last-child {
  border-top-right-radius: 12px;
}

.about-section table.comparison-table tbody tr,
.pain-points-section table.comparison-table tbody tr {
  border-bottom: 1px solid rgba(0, 214, 222, 0.2) !important;
  transition: background 0.3s ease;
  background: transparent !important;
}

.about-section table.comparison-table tbody tr:hover,
.pain-points-section table.comparison-table tbody tr:hover {
  background: rgba(0, 214, 222, 0.05) !important;
}

.about-section table.comparison-table tbody tr:last-child,
.pain-points-section table.comparison-table tbody tr:last-child {
  border-bottom: none !important;
}

.about-section table.comparison-table tbody tr:last-child td:first-child,
.pain-points-section table.comparison-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.about-section table.comparison-table tbody tr:last-child td:last-child,
.pain-points-section table.comparison-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.about-section table.comparison-table tbody tr td,
.pain-points-section table.comparison-table tbody tr td {
  padding: 15px !important;
  color: var(--paragraphColorSecond) !important;
  border: none !important;
  vertical-align: middle !important;
  background: transparent !important;
  text-align: left !important;
}

.about-section table.comparison-table tbody tr td:first-child,
.pain-points-section table.comparison-table tbody tr td:first-child {
  color: var(--whiteColor) !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.about-section table.comparison-table tbody tr td:first-child strong,
.pain-points-section table.comparison-table tbody tr td:first-child strong {
  color: var(--whiteColor) !important;
}

/* Highlight text in table cells */
.comparison-table .highlight-text {
  color: var(--mainColor2) !important;
  font-weight: 600 !important;
}

/* Integration Solution Styling */
.integration-solution-section {
  background-color: var(--DarkBg);
}

.integration-solution-section h3 {
  color: var(--whiteColor);
  margin-bottom: 30px;
  font-size: 2em;
}

.integration-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.integration-step > div {
  background: rgba(0, 234, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

.integration-step > div:nth-child(1) {
  border-left: 4px solid #00eaff;
}

.integration-step > div:nth-child(2) {
  border-left: 4px solid #00ff88;
  background: rgba(0, 255, 136, 0.08);
}

.integration-step > div:nth-child(3) {
  border-left: 4px solid #ffd700;
  background: rgba(255, 215, 0, 0.08);
}

.integration-step > div:nth-child(4) {
  border-left: 4px solid #00eaff;
}

.integration-step > div > div:first-child {
  font-size: 2em;
  margin-bottom: 10px;
}

.integration-step h4 {
  color: var(--whiteColor);
  font-size: 1.3em;
  margin-bottom: 10px;
}

.integration-step p {
  color: var(--paragraphColorSecond);
  margin-bottom: 0;
  line-height: 1.7;
}

.integration-summary {
  background: rgba(0, 214, 222, 0.1);
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
}

.integration-summary h4 {
  color: var(--whiteColor);
  margin-bottom: 15px;
  font-size: 1.5em;
}

.integration-summary p {
  color: var(--paragraphColorSecond);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Service Highlights List (開場區塊) */
.service-highlights {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.service-highlights li {
  color: var(--paragraphColorSecond);
  font-size: 16px;
  margin-bottom: 15px;
  padding-left: 35px;
  position: relative;
  line-height: 1.6;
}

.service-highlights li i {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--mainColor2);
  font-size: 22px;
}

.service-highlights li strong {
  color: var(--whiteColor);
}

/* Pain Points Section */
.pain-points-section {
  background-color: var(--DarkBg);
}

.pain-points-section h2 {
  color: var(--whiteColor);
  margin-bottom: 10px;
}

.pain-points-section .section-description {
  color: var(--paragraphColorSecond);
  font-size: 17px;
}

.pain-solution-box {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(3.5px);
  padding: 30px 25px;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  margin-bottom: 30px;
  transition: var(--transition);
  position: relative;
  height: 100%;
}

.pain-solution-box:hover {
  border-color: var(--mainColor2);
  box-shadow: 0 0 30px rgba(0, 214, 222, 0.1);
}

.pain-point, .solution {
  margin-bottom: 15px;
}

.pain-point h4, .solution h4 {
  color: var(--whiteColor);
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pain-point p, .solution p {
  color: var(--paragraphColorSecond);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

.status-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.status-icon.pain {
  color: #ff4444;
}

.status-icon.solution {
  color: #00ff88;
}

.arrow-divider {
  text-align: center;
  color: var(--mainColor2);
  font-size: 24px;
  font-weight: bold;
  margin: 15px 0;
}

/* Core Advantages Section */
.core-advantages-section {
  background-color: var(--DarkBg);
}

.core-advantages-section h2 {
  color: var(--whiteColor);
  margin-bottom: 10px;
}

.core-advantages-section .section-description {
  color: var(--paragraphColorSecond);
  font-size: 17px;
}

.advantage-box {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(3.5px);
  padding: 40px 25px 25px;
  border: 1px solid #101c37;
  margin-bottom: 30px;
  transition: var(--transition);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.advantage-box:hover:before {
  position: absolute;
  content: '';
  z-index: -1;
  height: calc(100% - 4px);
  width: calc(100% - 4px);
  top: 1px;
  left: 1px;
  background: rgb(16 17 40);
  transition: all 300ms ease;
}

.advantage-box:hover:after {
  content: "";
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 50% 50%, 50% 50%;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  background-image: linear-gradient(90deg, rgba(110, 102, 255, 0) 0%, rgb(40, 176, 255) 50%, rgba(255,255,255,0) 100%);
  -webkit-animation: rotate 5s linear infinite;
  animation: rotate 5s linear infinite;
}

@-webkit-keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.advantage-icon {
  font-size: 50px;
  color: var(--mainColor2);
  margin-bottom: 20px;
}

.advantage-icon i {
  color: var(--mainColor2);
}

.advantage-box h3 {
  color: var(--whiteColor);
  font-size: 22px;
  margin-bottom: 15px;
}

.advantage-box p {
  color: var(--paragraphColorSecond);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.advantage-highlight {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.advantage-highlight .badge {
  background: linear-gradient(94deg, var(--mainColor2) 21.18%, #0064C1 104.4%);
  color: var(--whiteColor);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

/* Proactive Service Section */
.proactive-service-section {
  background-color: var(--DarkBg);
}

.proactive-service-section h2 {
  color: var(--whiteColor);
  margin-bottom: 10px;
}

.proactive-service-section .section-description {
  color: var(--paragraphColorSecond);
  font-size: 17px;
}

.proactive-service-card {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(3.5px);
  padding: 40px 30px;
  border: 1px solid #1a1a1a;
  margin-bottom: 30px;
  transition: var(--transition);
}

.proactive-service-card:hover {
  border-color: var(--mainColor2);
  box-shadow: 0 0 30px rgba(0, 214, 222, 0.1);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.service-icon {
  font-size: 45px;
  color: var(--mainColor2);
  flex-shrink: 0;
}

.service-icon i {
  color: var(--mainColor2);
}

.proactive-service-card h3 {
  color: var(--whiteColor);
  font-size: 24px;
  margin-bottom: 0;
}

.service-description {
  color: var(--paragraphColorSecond);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.service-features li {
  color: var(--paragraphColorSecond);
  font-size: 15px;
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}

.service-features li i {
  position: absolute;
  left: 0;
  top: 2px;
  color: #00ff88;
  font-size: 18px;
}

.service-features li strong {
  color: var(--whiteColor);
}

.service-benefit {
  background: rgba(0, 214, 222, 0.05);
  border-left: 3px solid var(--mainColor2);
  padding: 15px 20px;
  margin-top: 20px;
}

.benefit-label {
  display: inline-block;
  background: var(--gridColor);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.service-benefit p {
  color: var(--whiteColor);
  font-size: 15px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Routing Box Styling - Professional Design */
.routing-box {
  text-align: center;
  padding: 40px 25px 25px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(3.5px);
  border: 1px solid #1a1a1a;
  transition: var(--transition);
  margin-bottom: 30px;
  height: 100%;
  position: relative;
}

.routing-box:hover {
  border-color: var(--mainColor2);
  box-shadow: 0 0 30px rgba(0, 214, 222, 0.1);
}

.routing-icon {
  font-size: 50px;
  color: var(--mainColor2);
  margin-bottom: 20px;
}

.routing-icon i {
  color: var(--mainColor2);
}

.routing-box h3 {
  color: var(--whiteColor);
  font-size: 22px;
  margin-bottom: 15px;
}

.routing-box p {
  color: var(--paragraphColorSecond);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.routing-highlight {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.routing-highlight .badge {
  background: linear-gradient(94deg, var(--mainColor2) 21.18%, #0064C1 104.4%);
  color: var(--whiteColor);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

/* Routing Summary */
.routing-summary {
  margin-top: 40px;
  padding: 30px;
  background: rgba(0, 214, 222, 0.05);
  border-left: 4px solid var(--mainColor2);
  border-radius: 8px;
}

.summary-content h4 {
  color: var(--whiteColor);
  font-size: 20px;
  margin-bottom: 15px;
}

.summary-content p {
  color: var(--paragraphColorSecond);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

.summary-content strong {
  color: var(--whiteColor);
}

/* Response Mode Features List */
.response-mode-features {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  margin-bottom: 20px;
}

.response-mode-features li {
  color: var(--paragraphColorSecond);
  font-size: 15px;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}

.response-mode-features li i {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--mainColor2);
  font-size: 18px;
}

/* Service Plans - Scenario Tags */
.plan-scenario {
  margin: 15px 0 20px;
  padding: 15px;
  background: rgba(0, 214, 222, 0.05);
  border-radius: 8px;
}

.plan-scenario strong {
  color: var(--whiteColor);
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}

.scenario-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--mainColor2);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 13px;
  margin-right: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 214, 222, 0.3);
}

/* Stats Section */
.stats-section {
  background-color: var(--DarkBg);
}

.stats-section h2 {
  color: var(--whiteColor);
  margin-bottom: 10px;
}

.stats-section .section-description {
  color: var(--paragraphColorSecond);
  font-size: 17px;
}

.stats-box {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(3.5px);
  padding: 40px 25px;
  border: 1px solid #1a1a1a;
  margin-bottom: 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stats-box:hover {
  border-color: var(--mainColor2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 214, 222, 0.2);
}

.stats-box:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gridColor);
}

.stats-icon {
  font-size: 50px;
  color: var(--mainColor2);
  margin-bottom: 20px;
}

.stats-icon i {
  color: var(--mainColor2);
}

.stats-number {
  color: var(--whiteColor);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--gridColor);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-label {
  color: var(--whiteColor);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.stats-detail {
  color: var(--paragraphColorSecond);
  font-size: 14px;
  display: block;
}

/* Stats Highlights */
.stats-highlights {
  margin-top: 50px;
  padding: 40px 30px;
  background: rgba(0, 214, 222, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 214, 222, 0.2);
}

.highlight-content h4 {
  color: var(--whiteColor);
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.highlight-item {
  text-align: center;
  padding: 20px 15px;
}

.highlight-item i {
  font-size: 40px;
  color: var(--mainColor2);
  margin-bottom: 15px;
  display: block;
}

.highlight-item strong {
  color: var(--whiteColor);
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.highlight-item p {
  color: var(--paragraphColorSecond);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive Design */
@media only screen and (max-width: 991px) {
  .pain-solution-box {
    padding: 25px 20px;
  }

  .advantage-box {
    padding: 35px 20px 20px;
  }

  .routing-box {
    padding: 35px 20px 20px;
  }

  .proactive-service-card {
    padding: 30px 25px;
  }

  .features-section-2 .pricing-box {
    padding: 30px !important;
  }

  .features-section-2 .pricing-box h3 {
    font-size: 1.6em;
  }

  .integration-step h4 {
    font-size: 1.2em;
  }

  .integration-summary {
    padding: 25px;
  }
}

@media only screen and (max-width: 767px) {
  .service-highlights li {
    font-size: 15px;
  }

  .pain-point h4, .solution h4 {
    font-size: 17px;
  }

  .advantage-box h3 {
    font-size: 20px;
  }

  .routing-box h3 {
    font-size: 20px;
  }

  .proactive-service-card h3 {
    font-size: 22px;
  }

  .features-section-2 .pricing-box {
    padding: 25px !important;
  }

  .features-section-2 .pricing-box h3 {
    font-size: 1.4em;
  }

  .features-section-2 .pricing-box > div:first-of-type {
    flex-direction: column;
    align-items: flex-start;
  }

  .features-section-2 .pricing-box > div:first-of-type i {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .table thead th,
  .table tbody td {
    padding: 12px 10px;
    font-size: 0.9em;
  }

  .integration-step > div > div:first-child {
    font-size: 1.5em;
  }

  .integration-step h4 {
    font-size: 1.1em;
  }

  .integration-summary {
    padding: 20px;
  }

  .integration-summary h4 {
    font-size: 1.3em;
  }
}

/* Service Plans Section - Equal Height */
.pricing-table .row {
  display: flex;
  flex-wrap: wrap;
}

.pricing-table .row > [class*='col-'] {
  display: flex;
}

.pricing-table .pricing-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.pricing-table .pricing-box .features-list {
  flex-grow: 1;
  margin-bottom: 20px;
  margin-top: 0 !important;
  padding-top: 10px;
}

.pricing-table .pricing-box p {
  margin-bottom: 15px !important;
}

.pricing-table .pricing-box .features-list li {
  margin-bottom: 15px !important;
}

/* Pricing Button Outline Style */
.pricing-btn-outline {
  display: block;
  width: 100%;
  background: transparent;
  color: #00ffff;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid #00ffff;
  transition: all 0.3s ease;
  margin-top: auto;
}

.pricing-btn-outline:hover {
  background: var(--mainColor2);
  color: var(--whiteColor);
  border-color: var(--mainColor2);
  box-shadow: 0 4px 15px rgba(0, 214, 222, 0.4);
}
